Hello,
jqGrid does not support dynamically loading configuration per request.
In order to do this you should first GridUnload and then recreate the grid.
With setGrid param this will not work
Suppose the grid is initially configured
$(“#mybutton”).click(function(){
$(“#mygrid”).GridUnload(); // destroy the grid saving the table and pager
// here code to load new jqGrid configuration – like colmodel, colnames and etc
var newjqgridoptions = …..
$(“#mygrid”).jqGrid(newjqgridoptions);
return false;
})
Hope this help
Regards
Tony