Remove column with object data source or columns option by using updateSettings

Tags: #<Tag:0x00007f0b0fcdc190>

I am using the angular wrapper.
We want to remove column programmatically with column options specified.
But we are not able to do so.

~ alter method won’t work as the data source is an object
~ we have tried to manually update the data, colHeader, columns and call the updateSettings on hotInstance with these updated values, but that is also not working.

Please help us to solve this.

Sorry for keeping you waiting for so long Brajendra.

We want to remove column programmatically with column options specified.

The only way to do it is to define columns as a variable and push() another array to the variable once a new column should be added.

1 Like

Thanks for the Reply ! it worked! we need to update columns and colHeader (if we have custom headers) !

Glad to hear that it worked.

If you’d need anything else you can create a new topic or just send me an email at support@handsontable.com.