I am working on POC and recently ran into an issue on loading data after setting state in a grid event.
Previously when I clicked to load a table, in the function it would re-load all table settings, which also included the data loaded. I have some events on the grid, like AfterCellMouseDown where I update the state.
I recently changed this so that the table settings are initialzed once when loading the table…and then I use the loadData() method to add data to the table. This worked.
However, when I click in a cell (which does a setState()), the data from the grid disappears. It appears to be only when a setState is called. What is the appropriate method to maintain data in the grid when using loadData() so that I can use the events for processing? I would hate to have to loadData() after each setState() ?