add column dynamically to handsontable

Pawan picture Pawan · Mar 21, 2013 · Viewed 13.8k times · Source

I am trying to dynamically add a column to a handsontable. I don't see a sample anywhere nor o i see a method to do so in the API. Has anyone figured out a way to overcome this or have some sample code that I can look at that would help.

Thank you.

Answer

codename- picture codename- · Apr 29, 2013

Have you tried use handsontable('alter', 'insert_col', index, amount) method? You can add and remove columns and rows using alter method. See the documentation page of the handsontable project.