0

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.

Community
  • 1
  • 1

1 Answers1

0

TO all who view my post I solved it by using this var test= jQuery("#jqgrid").jqGrid('getGridParam', 'records'); and I put it inside the loadComplete function

Thanks for this LINK