If I do the following:
$( "#grid_brands" ).pqGrid(obj_brands);
alert($( "#grid_brands" ).pqGrid('option', 'dataModel.data' ).length);
results in a: "Unable to get property 'length' of undefined or null reference"
but if I do...
$( "#grid_brands" ).pqGrid(obj_brands);
alert("wait");
alert($( "#grid_brands" ).pqGrid('option', 'dataModel.data' ).length);
then it works and the number of rows is displayed.
Is there anyway I can check if the data has been loaded before displaying the number of rows ?
Thanks