jqGrid is an excellent jquery plugin to display a grid. We added some filter possibilities and with jquery updated the url where we had to fetch the data from. Worked nice, however, when the user selected a certain filtering or a certain page and clicked on one of the items in the list, they were navigated away from the grid. When they navigated back, the grid was at its start position, so at the first page, default sorting and filtering. So we had to store the values selected by the user. I created two javascript functions for this (in combination with jQuery) function saveGridToCookie(name, grid) { var gridInfo = new Object(); name = name + window.location.pathname; gridInfo.url = grid.jqGrid( 'getGridParam' , 'url' ); gridInfo.sortname = grid.jqGrid( 'getGridParam' , 'sortname' ); gridInfo.sortorder = grid.jqGrid( 'getGridParam' , 'sortorder' ); gridInfo.s