<div id="Grid"></div>
<div class="e-pagerstatusbar">
Total Rows count:
<span id="page"></span>
</div>
</body>
<script type="text/javascript">
…………..
$(function () {
$("#Grid").ejGrid({
…………….
dataBound:"databound",
allowFiltering:true,
actionComplete:"complete",
columns: [
………….
],
});
});
function databound(Args){
var count = this.model.dataSource.length;
$("#Grid").append($(".e-pagerstatusbar"));
$("#page").text(count); // append the page status to grid
}
function complete(args){
var count = this.model.currentViewData.length;
$("#page").text(count); // update the page count after action complete
}
</script>
|