asp.net-mvc – KendoUI网格显示总记录数
发布时间:2020-12-30 11:45:25 所属栏目: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中配置3个级别的URL?
- 认证 – asp.net mvc 3:Page.User.IsInRole(“xy”)返回nu
- asp.net – System.Security.SecurityException?
- ASP.NET Core 2.0中Razor页面禁用防伪令牌验证
- 并行运行ASP.NET Webforms和ASP.NET MVC
- asp.net – 在部分视图中强制使用没有Html.BeginForm / Aja
- 是否可以使用ASP.NET ScriptManager来使用Windows FIPS安全
- asp.net Ajax之无刷新评论介绍
- asp.net – 我们可以在视图状态中放置哪些类型的对象?
- asp.net – 适用于多个用户的EWS通知中心
