Hy,
I have this situation:
I have a grid. I json the postdata of the grid and save it into a cookie.
The postData looks like this:
{“_search”:false, “nd”: 1277448638394, “rows”:10, “page”:3, “sidx”:”name”, “sord”:”asc”}
What i want to do is:
When I reload the page, i check if the cookie exists, and if exists I want to set the postData
to the value of the cookie and reload the grid.
I do it like this:
if cookie is set:
gridState = $.cookie('gridState'); //i retreive the value from the cookie. if i echo this is the value above
$(“#gridId”).setGridParam({postData : gridState}).trigger('reloadGrid'); // i change postData of the grid and reload it.
This is not working. The grid is not reloading with the new postData.
Am i doing something wrong?
Do I have to use other method?
Any help would be appreciated.
Thanks,
AdytmRO
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top