I want to Disable the NavGrid buttons in JQGrid when grid is empty. I am using the following code, but buttons are not getting disabled.
var rowCount = jQuery('#gridID').jqGrid('getGridParam', 'reccount');
if (rowCount == 0) {
$("view_" + "#gridID").addClass('ui-state-disabled');
$("refresh_" + "#gridID").addClass('ui-state-disabled');
}
Any help on this is highly appreciated.