asp.net-mvc – KendoUI网格显示总记录数
发布时间:2020-12-30 11:39:14 所属栏目: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 – RedirectResult Object作为URL
- asp.net – 无法加载文件或程序集App_Licenses
- 在IIS / ASP.Net中的.NET 1.1应用程序中创建.NET
- asp.net-mvc – ASP.NET MVC 2预览2:区域重复控
- asp.net-mvc – 我可以获取html.HiddenFor / Htm
- asp.net-mvc-2 – MVC源代码单例模式
- asp.net – 让Visual Studios使用子域名?
- asp.net-mvc-4 – 带有TextBoxFor的MVC在循环中具
- 自定义每个用户的会话超时 – ASP.NET
- SimpleMembership与ASP.NET MVC 4中的自定义数据
热点阅读