How do I trigger a state load on click
How do I trigger a state load on click

I have setup stateSaveCallback and stateLoadCallback they are working. I can trigger a state save onclick using datatable.state.save(bool) but I can't find how to apply the newly loaded statae from my db. How do I trigger a state load as required and apply them to the table
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
The table assumes the saved state wouldn't change, without its involvement. So if it is being changed, you would need to reinitialise the table.
Colin
Re-initialising the table seems like a dirty solution, but it gets the job done
. Particularly because my initialization configuration is quite long.
Thanks Colin
If you know what's changing in the state, say for example only column searches or ordering perhaps, you could apply those changes by hand via the API. It might be an alternative solution,
Colin