How to make the mergecell option from contextmenu disable

Tags: #<Tag:0x00007efc60c2d7c0> #<Tag:0x00007efc60c2d680>

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.

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