asp.net-mvc – KendoUI网格显示总记录数
发布时间:2020-12-30 12:13:04 所属栏目: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 – 为每个网站/应用程序创建单独的IIS应用程序池的
- iis-7.5 – 使用虚拟目录/应用程序在IIS中托管ASP.NET 5 We
- ASP.NET Core知多少(7):对重复编译说NO -- dotnet watch
- asp.net-mvc – 所有请求获取HTTP错误401.2 – 未经授权的响
- asp.net-mvc-3 – 在ASP.NET MVC 3中覆盖/禁用授权
- asp.net – [DataType(DataType.EmailAddress)]和[EmailAdd
- 具有多个ASP.NET Web应用程序的Visual Studio解决方案
- ASP.NET JSON字符串与实体类的互转换示例代码
- asp.net-mvc – ASP.NET MVC 2预览2:区域重复控制器问题
- asp.net-mvc – 如何将KendoUI DropDownListFor绑定到ViewD
推荐文章
站长推荐
热点阅读