I have gone through the steps of saving a datagrid to the server once a user changes the columns they want displayed, but what I have found is that when I use
var gridInfo = JSON.stringify($(“#list”).getGridParam());
the onSelectRow: paramater is not returned, which is a function that uses the id of the row to display some information elsewhere on the page. So what I'm now trying to do is just see if I can add the onSelectRow through using setGridParam after the grid has been generated. But this doesnt seem to be working. Here is what I have right now. The $data_grid_params is either build from the default values I have predefined, or pulled from the server if the user has saved them previously.
jQuery(“list”).jqGrid($data_grid_params).navGrid('#pager',{edit:false,add:false,del:false,search:false});
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top