I have a client side managed jqgrid that I reload when some external event are fired. Everything is fine when I reload the grid with more data but when I reload it with less data, the amount of rows is incorrect.
For instance, when the is currently 100 rows in the grid and I reload it with 200, then the nav bar shows 200 records. If there are 200 rows in it and I refresh it with 25 rows , it still show 200 in the nav bar instead of 25. The code that refreshes the grid looks like:
$("#list2").trigger("GridUnload");
$.ajax({
url: 'http://xxx,
dataType: 'json',
async: false,
success: function(data) {
gridData = data;
}
});
$("#list2").setGridParam({ data: gridData });
$("#list2").trigger("reloadGrid");
I don't think the problem is with the nav bar as I can clearly hit next page and see the addition rows.
Thanks