How to add column to the left or right of a selected column?

I want to add columns exactly after or before a selected column. Ive implemented a custom function which updates the column array but it doesn’t work.
I am using angular wrapper for handsontable

Hi @sahmed-int

Can you share your code via demo? As I understand you update the columns array. Have you used the

instance.updateSettings({ columns: newArray }) ?

Yes i have used the updateSettings function and i also have a columns array, however it is rendering the columns out of order.

Ill try to share my code

Hi @sahmed-int

how is the progress?