: , , jqGrid i.e. navGrid. <DIV> , jqGrid - .
: . , . HTML - loadComplete, , " ".
HTML:
<pre>
<div class="cols jsGridOuter" style="position:relative;">
<table id="mandateList" class="jsStretchGridWidth"><tr><td></td></tr></table>
<div class="noResultsDiv gridNoRecords jstHidden">
<span class="notice"><label>No records to show</label></span>
</div>
<div id="pagination"></div>
</div>
</pre>
Java Script:
loadComplete: function() {
if (j$(this).getGridParam("records")==0)
{
j$('div#pagination').hide();
if (j$('div.noResultsDiv').hasClass('jstHidden'))
{
j$('div.noResultsDiv').removeClass('jstHidden');
}
}
else
{
j$('div#pagination').show();
if (j$('div.noResultsDiv').length>0)
{
j$('div.noResultsDiv').addClass('jstHidden');
}
}
}