I have a function that makes an ajax call to save a record. After success I am trying to reload the grid which will get the new record and then sort the last name column (e_lname).
I can do one but not the other. So far i have to put a timer on the the sort to make it work. Any ideas please and thank you for the great grid.
$(“#list”).setGridParam({datatype:’json’, page:1}).trigger(‘reloadGrid’);
setTimeout(function(){
// resort grid
$(‘#list’).jqGrid(‘setGridParam’, {sortname: ‘e_lname’, sortorder: ‘asc’}).trigger(‘reloadGrid’, [{page: 1}]);
}, 1500);
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top