asp.net-mvc – KendoUI网格显示总记录数
发布时间:2020-12-30 11:35:47 所属栏目: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 – 剃刀引擎 – 如何根据不同的条件渲染不同
- asp.net-mvc – 如何在asp.net中使用mvc构建购物车?
- asp.net – Orchard CMS Media中的文件大小上传限制
- 是否可以使用ASP.NET ScriptManager来使用Windows FIPS安全
- asp.net-mvc – MVC错误 – 传入字典的模型项目的类型为“S
- asp.net – 从启用AJAX的WCF服务返回错误详细信息
- ASP.net WebAPI跨域调用问题的解决方法
- ASP.NET MVC学习教程之Razor语法
- asp.net webservice返回json的方法
- asp.net-mvc – ASP.NET MVC:Action中的授权 – 建议的模式
推荐文章
站长推荐
- asp.net-mvc-3 – 将数组传递给RouteValues,并将
- asp.net – 登录后对Membership.GetAllUsers()的
- asp.net – ASP:ItemTemplate中的DropDownList:
- asp.net-mvc – ASP.NET MVC:处理取消按钮的正确
- asp.net-web-api – 在WebApi OData中为OData服务
- asp.net-mvc – 在MVC命令,优先级和功能问题中授
- asp.net – 允许服务器/ usercontrol上的任何属性
- ASP.NET MVC删除操作方法中的查询字符串
- asp.net – Mocking HttpContext不起作用
- asp.net core webapi 服务端配置跨域的实例
热点阅读
