Here’s a JSfiddle of my issue, adapted from a very nice little demo from a previous question.
I want to be able to dynamically generate the array for the data
field of my table, but when I do that, setDataAtCell()
doesn’t work as I would expect. I try to use the contextMenu to set the data and the CSS class of a selected cell, and it sets the CSS class correctly, but sets the data for every cell in the column instead of just the selected cell. If I create the same array of arrays manually and pass it in the data
field, then setDataAtCell()
works as expected.
How can I dynamically generate the table data before instantiating the table without causing this issue?