Posts tagged reloadGrid
Reload jqGrid
013 years ago
by Pieter Vogelaar
in JavaScript
Today I was looking for the method to reload the JSON data of jqGrid.
With firebug I selected some element the grid was in with:
$('.ui-jqgrid', '#tab-ínfo').trigger('reloadGrid');
I chose .ui-jqgrid because that was one of the classes of the grid container. But this doesn’t work! The grid table tag is the element that has the actual grid ID. In order to get the generic code above work, we have to add the table element.
$('.ui-jqgrid table', '#tab-ínfo').trigger('reloadGrid');
And now it works as expected!