I\'m having a heck of a time trying to only display my jqGrid when records are returned from my webservice. I don\'t want it to be collapsed to where you only see the capti
Try this (Keep JqGrid inside a div). Also create a label to display a meesage.
And then write this after ajax call
gridComplete: function () {
var recs = parseInt($("#EmpTable").getGridParam("records"), 10);
if (isNaN(recs) || recs == 0) {
document.getElementById("lblValMessage").innerHTML = "No data found.";
$("#divForImageResult").hide();
}
else {
$('#divForImageResult').show();
}
}
});