How to Disable the ‘Merge Cells’ option in the context menu based on dynamically chosen specific rows in the selection. Also I want to use the "afterMergeCell’ hook.
How to make the mergecell option from contextmenu disable
Hi @rupeshfend
In this case you would need to create a custom context menu and disable this option for desired rows. Here you can find similar example, in this case the first custom option isn’t available for the first row in the table: https://jsfiddle.net/handsoncode/qa74vfyt/
Additionally, here you can find all the standard available options to define in the context menu if needed: https://handsontable.com/docs/javascript-data-grid/context-menu/#context-menu-with-specific-options