asp.net-mvc – KendoUI网格显示总记录数
发布时间:2020-12-30 10:36:36 所属栏目:asp.Net 来源:互联网
导读:我使用kendoUI网格来显示表中的记录.我想显示的记录总数如此表.就像是 显示1-20共1203条记录 有没有办法使用KendoUI网格显示总记录数? 所有你需要做的是将它添加到你的.kendoGrid dataBound: function (e) { //total bits needs to be removed because dataB
我使用kendoUI网格来显示表中的记录.我想显示的记录总数如此表.就像是 显示1-20共1203条记录 有没有办法使用KendoUI网格显示总记录数? 解决方法所有你需要做的是将它添加到你的.kendoGriddataBound: 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>') } (编辑:台州站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- ASP.NET MVC与Webforms:替换WebForms控件
- asp.net-mvc – 在asp.net mvc 3剃刀中识别html助手的问题
- asp.net核心 – 如何排除在ASP.NET Core中发布文件?
- .net – 什么可以解释托管堆上超过5,000,000个System.WeakR
- asp.net-mvc – 有没有办法重命名RequestVerificationToken
- asp.net中的GridView分页问题
- 将ASP.NET身份与核心域模型分离 – 洋葱架构
- ASP.NET成员:拒绝用户阻止CSS,页面无法正确呈现?
- 什么是链接服务器的ASP.NET连接字符串格式?
- asp.net – 转发器控件中的单选按钮列表
推荐文章
站长推荐
热点阅读