Insert column in angular

Tags: #<Tag:0x00007efc60fd85c8> #<Tag:0x00007efc60fd8438>

I’m not able to insert a column, when i use contextMenu:true and open the context menu insert column options is disable in angular, how to achieve this is and my data in
array of object

Hi @saran123

With the data defined as an array of objects it’s not possible to add/remove columns from the context menu. It can be done with creating a custom context menu option and altering the columns structure with the updateSettings.

Here’s an example of how to create a custom context menu option: https://handsontable.com/docs/javascript-data-grid/context-menu/#context-menu-with-a-fully-custom-configuration

Ok thanks I will check this, Could you please tell how to remove the column in handsontable manually

@saran123

Here we have an example showing a basic logic of how it can be done: https://jsfiddle.net/handsoncode/r6s2bf18/

@saran123

Additionally I’ve found this example, which also might be helpful: https://jsfiddle.net/handsoncode/ymeh7v2t/