I have a case where I need to update some columns and it seems that if the table currently has a sort applied, that sort is removed.
Here’s an example:
https://jsfiddle.net/pvk6tz1j/
After sorting one of the sortable columns, I call updateSettings({ columns })
, and even if those columns are the value from getSettings().columns
it resets the sort.
In my case I may only need to update a single column, but I don’t see another way to do this besides updateSettings()
.
Is there a way to update columns without reverting column state?
Is there a way to save and restore the column state after updates to the columns?