I had a working example of code that would allow me to dynamically fetch data, and then dynamically update the columns in the settings via the state. When I loaded a new table, it correctly re-rendered the table with the appropriate columns.
I needed to add a new custom renderer/editor for my react app, and the way I got this working was to use the module. I got this working, and I setup the code so that it dynamically re-renders the based on the state.
However what’s happening now is it retains columns from previous table loaded.
For example, if I i load table with 5 columns, it works. I then choose to load table with 3 columns and it still shows 5 columsn.
What happens is it correctly updates header for 1st 3 columns, but 2 remain from previous table load. I can’t seem to “refresh” the entire table at this point.
I believe I need to use the in order to correctly render my custom editors, etc, but I need some way of completely refreshing grid when it’s loaded with new data.
Any help is appreciated?
Another thought. Is is possible to use the Column settings instead of HotCoilumn and pass the React Component names as the custom editor /renderer? Using the columns attribute when I refresh the state settings works…it’ just when dynamically creating the I have this issue.