eiu*_*165 10 asp.net-mvc kendo-ui
我使用kendoUI网格显示表中的记录.我想显示表的总记录数.就像是
显示1203条记录中的1-20条
有没有办法显示使用KendoUI网格的记录总数?
Dir*_*alb 10
您所要做的就是将其添加到.kendoGrid中
dataBound: function (e) {
//total bits needs to be removed because dataBound fires every time the gird pager is pressed.
$('#totalBits').remove();
//add the total count to the pager div. or whatever div you want... just remember to clear it before you add it.
$('.k-grid-pager').append('<div id="totalBits">' + this.dataSource.total() + '</div>')
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
11784 次 |
| 最近记录: |