The question is almost complete in the title: is there any way, using jquery, to find the element that is handled by a jqGrid object?
To be more precise, I wish to call a reload method on the grid, if one is present on the page. I am using the following code
...
success: function (data) {
//Check if there is a jqGrid on the page and if present, reloads its data
var jqGrid = $('.ui-jqgrid');
if ( jqGrid.length ) {
//get the grid id. The actual id object is in the form of "gbox_your_grid_id"
var gridid = "#" + jqGrid.attr('id').substring(5);
//time to reload
$(grid).trigger('reloadGrid');
}
}
but it seems that the reloadGrid method is never called. Any suggestion?