bStateSave - Permanently stored on server

bStateSave - Permanently stored on server

mathiemathie Posts: 36Questions: 0Answers: 0
edited October 2009 in General
Hello,

How can I export the table preferences (sort, per page) and store it on the server instead of relying on cookie?

Thanks

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Hi mathie,

    There are a couple of options. If you are currently using server-side processing, then you've got all the information at the query time, so you could just store that. If you are using client-side processing however, you'll need to get the value of the cookie and post it to the server to be stored. One way of doing this would be to us fnDrawCallback to read the cookie and then sent it's contents to the server, Ajax style, for saving.

    Of course, once saved, you'll need to parse that information back into the initialisation object such that the state is restored on a refresh :-)

    Regards,
    Allan
This discussion has been closed.