我使用kendoUI网格来显示表中的记录.我想显示的记录总数如此表.就像是
显示1-20共1203条记录
有没有办法使用KendoUI网格显示总记录数?
解决方法
所有你需要做的是将它添加到你的.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>') }
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。