I am in a situation where I need to be able to remove/hide columns dynamically. I found what I think should do the trick in the Methods section in the handsontable documentation. But have I have not been able to get it to work. I keep getting an error that says "Uncaught Error: cannot remove column with object data source or columns option specified".
I am trying to use the "alter" method with "remove_col" to remove the column.
$("#EFTable").handsontable('getInstance').alter('remove_col', 3)
Here is a sample of the code I am working with in JSFiddle.
Any suggestions on how to make this work or an other direction to get the job done would be appreciated.