When I call setSourceDataAtCell
in the spare row a new one is not created. Do I need to call some method?
DEMO
https://jsfiddle.net/tacvz5b9/
press the test button
When I call setSourceDataAtCell
in the spare row a new one is not created. Do I need to call some method?
DEMO
https://jsfiddle.net/tacvz5b9/
press the test button
Hi @dan
Please check our migration guide to version 8.0.0 https://handsontable.com/docs/8.0.0/tutorial-migration-guide.html
If you’d like to add value to a row that does not exist you need to add it first (for example with the call to the alter()
method). Here’s an example https://jsfiddle.net/e48jbvk0/2/
Hello, I am not writing to a row which does not exist. I am writing to last row in the grid. When I do it manually as a user a new spare row is created. When I do it programmatically the value is correctly written in the cell but a new spare row is not created. Also I think the afterUpdate event is not raised.
thank you
Sorry, my example did not add minSpareRows
. Now it does https://jsfiddle.net/8b7m6Lpq/
In my example the minSpareRows
is added automatically. When I change a value in an existing row https://jsfiddle.net/7rzbwcgv/ the minSpareRows
are still 1
.
In your demo, there’s no setSourceDataAtCell
method. So if my sample doesn’t work for you, please share the bug scenario (steps, settings).