I have seen the cookie method on how to save and retrieve grid settings. I would like to save the settings on the server, so that users who work on different PCs can take their settings with them.
I have a button which is used to save other stuff by passing variables to the php script:
******************
jQuery(â€#a_todayâ€).setGridParam({url:â€/ajax/update_stuff.php?somestuff=â€+somestuff,page:1}).trigger(â€reloadGridâ€);
******************
How can I pass the grid params to the server?
******************
var gridparams = $(’#a_today’).getGridParam();
jQuery(â€#a_todayâ€).setGridParam({url:â€/ajax/update_stuff.php?somestuff=â€+somestuff+’&gridparams=’+gridparams,page:1}).trigger(â€reloadGridâ€);
******************
The problem is that gridparam is an object – and it is huge. If I dump the object I can see that it is thousands of characters.
Can I compress / encode it and then uncompress / de-encode when to be used to retrieve grid settings?
Or should I just save only the properties I wish to be saved such as column names, widths etc. getgridparam(columns, widths….
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top