Making Existing(Original) Data only Editable

Tags: #<Tag:0x00007f0aff1fb010>

Greetings,

I am having data of 3 rows(Original data) and 2 blank rows,
So i am willing to edit the top 3 rows and can add new rows below the existing rows or in between the 3 rows(Original data).
But is their any way to, not to remove the top 3 rows which should be editable only, these rows has to be present even if i add the rows in bottom or in between of these 3 rows.

I tried using: allowRemoveRow: false, but its getting applied to whole Handsontable,

How can we manage the original data so this should not to be removed, but can be editable?

Thank you

Hi @cadop16620

I can propose solution like this presented in the example below:

https://jsfiddle.net/aszymanski/rsywLonu/

Here I am creating a custom contextMenu and hide remove row option for the first 3 rows but other options are still available for those rows. Is this something you are looking for?

Greetings,

Yea that will be good to go,

Thank you for this contextMenu, i had thought to go around with allowRemoveRow, but that is not sufficient, So now i will go going accordingly,

And for original row data and new row data, i will be creating new obj of HOT, so while comparingcurrent HOT with new obj HOT, will get to know the new or old based on row,

So thank you again for your response.

Best Regards,