Good morning,
the loadData
will load every 2D array that you pass. You should be aware that if you use columns
data may not be visible. The loadData
itself works the same as setDataAtCell
when we consider hooks that are being called.
As you can see here https://jsfiddle.net/handsoncode/r8nb5ch6/ only the data has been changed. All the other settings like colHeaders
or height
remain the same.
And here https://jsfiddle.net/handsoncode/jkwb27nh/ I’ve added an afterChange
hook that gives us the same amount of information after data is loaded via inital data
call and the same one for the loadData
method.