Error add column in table

Tags: #<Tag:0x00007efc709a8238> #<Tag:0x00007efc709a80a8>

I’m getting an error message when trying to add a new column to the end of my handsontable table

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.

https://codepen.io/ViniciusDevelopment/pen/qBzaqzm

https://jsfiddle.net/DevelopmentSagaz/mctf30jd/

Hi @viniciusmacielpires

Thank you for contacting us. This is a correct behavior for array of objects, as the error message states. You can only add new column in such scenario with updateSettings() method, redefining the columns configuration.

Here’s an example of how it can be done: https://jsfiddle.net/handsoncode/zd27bgue/