Deleting Rows

Tags: #<Tag:0x00007efc657863e8>

In row one I have a list of headers. I would like to prevent the user from right clicking and deleting this row. Is there a way to do this while still allowing users to right click and delete other rows?

Thanks!
wpatterson

Sure! You can use beforeRemoveRow hook to check which row is being deleted and return false to block the action. Or use disabled callback of the context menu to disable option for selected rows. There is an example in our documentation: https://handsontable.com/docs/7.1.0/demo-context-menu.html

Thank you. With this information I was able to remove the delete option for the first row.

There’s no update for more than a week so I guess that we can close the issue.

If there’s still something I can help you with please send me an email at support@handsontable.com