Saving and Loading Table State

Saving and Loading Table State

dannywoolydannywooly Posts: 2Questions: 1Answers: 0

Hi,

Currently working a solution that allows the user to save away the view they currently have, this includes sort, visible columns from the datatable and some other filters on data that we have.

Using the stateSaveCallback event i've managed to retrieve the settings i need to save from the datatable, translate them into our view model and save them away in the db in a report table.

I've also now started to look at the loading process, I have the Jquery to load from the server but i am struggling to have the datatable fire the stateLoadCallBack event, nothing seems to fire it, i've also tried the fnStateLoadParams event, this also doesn't appear to fire.

I've had a good read of the API methods available but cannot seem to find anything that would trigger the datatable to reload and hence fire these events for me to pull settings from the DB.

Any pointers would be appreciated.

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,146Questions: 1Answers: 2,586
    Answer ✓

    This thread should help, it's asking the same thing.

    Cheers,

    Colin

  • dannywoolydannywooly Posts: 2Questions: 1Answers: 0

    Thanks Colin, appreciate you finding it i did have a good search but must have missed this one

This discussion has been closed.