Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
143718 | Apr 2,2019 10:36 AM UTC | Apr 8,2019 01:36 PM UTC | jQuery | 5 |
![]() |
Tags: ejGrid |
<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>
|
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.