I found this LINK and I try the answer but it is only counting the row not the data in jqgrid.
Code
function testingforBBPDS() {
var BBPDSCount = jQuery('#BBDPSEmplList').jqGrid('getGridParam', 'reccount');
if (BBPDSCount > 0) {
$("#btnRemoveByBatchAllEmp").removeAttr("disabled");
}
}
It return 5
not 2
because I have 2
data in my jqgrid at first load.