Context menu does not allow column insert right or left

Tags: #<Tag:0x00007efc6d177468>

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?

I see an answer that works. Columns cannot be setup in order for fill right and left to work. Follow on question is…
Can I still use column and cell validators?

Hi @stewart.fishman

Can you share a JSFiddle demo where we will be able to replicate the same issue?
It will be much easier to test and provide a proper solution.

Issue closed in lack of needed demo.