Problem with empty rows and the nestedRow Plugin

Tags: #<Tag:0x00007f0b03b13b08>

Hey,
I get the error message “The Nested Rows plugin requires an Array of Objects as a dataset to be provided. The plugin has been disabled.” when I want to build a table with empty rows and the nestedrow plugin is active at the same time.
This error can also be reproduced with the example from your documentation for the use of nested rows.
Is there a way to work around this error?

Hi @sebastian.rupprecht

You can build a pattern for the table like here https://jsfiddle.net/3ak5g8ym/ and then use loadData to add new content https://jsfiddle.net/s201n4wy/

At the moment, using updateSettings to enable nestedRows does not work.

Hello and thank you for the quick reply. But I think this is not really a solution to the problem. If the table initially has no rows (and that should be possible in any case), no error should be thrown.
If I remove the entry for the rows in your example I get the same error as described above.

Passing no data at all (data not defined) has been fixed for the lastest version v9.0.2 here https://github.com/handsontable/handsontable/issues/8171
By default, we should 5 x 5 empty array in the return of data. So you can pass maxRows and maxCols to remove them https://jsfiddle.net/mjno7yuL/ (and then remove the limitation with updateSettings.

However, passing anything that is not a schema for nested rows will result in an error.