I have setup my table with data that is array of arrays and columns set up with validator functions. I have also set contextMenu to true. When I right click on the cell the Insert column left and right are grayed out. I see that the code in handsontable.js checks for
I am getting the following error.
handsontable.js:6602 Uncaught Error: Cannot create new column. When data source in an object, you can only have as much columns as defined in first data row, data schema or in the ‘columns’ setting.If you want to be able to add new columns, you have to use array datasource.(…)
When I step into the following:
this.isColumnModificationAllowed = function() {
return !(instance.dataType === ‘object’ || instance.getSettings().columns);
};
My dataType is an array, but the getSettings returns an empty object.
I put the following in my code after I rendered the table.
var test = hot.getSettings();
var test1 = hot.getData();
var test3 = hot.getInstance();
When I step through these the getSettings returns GridSettings object empty?? Is that related?