kendo-ui - 如何找出剑道网格中有多少行?

标签 kendo-ui kendo-grid kendo-asp.net-mvc

我有一个类似这样的剑道网格

$("#HoleGrid").kendoGrid({ ... });

我怎样才能知道网格中有多少行??

最佳答案

尝试使用以下内容。它应该工作......

$("#HoleGrid").data("kendoGrid").dataSource.data().length

或作为#Quinton Bernhardt

$("#HoleGrid").data("kendoGrid").dataSource.total()

关于kendo-ui - 如何找出剑道网格中有多少行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20904141/

相关文章:

javascript - Kendo UI 模板不起作用

kendo-ui - Kendo Grid 列的 ClientTemplate 问题

asp.net-mvc - 如何在 Kendo UI Grid 上执行服务器端过滤

javascript - 表-解析(Kendo UI 网格): Capturing the details of the model being sent from the View to Controller

asp.net-mvc - 如何将 Kendo UI MVC 扩展与 require js 一起使用?

asp.net-mvc - 如果 kendo ui grid 创建操作的参数名为 "model",则模型绑定(bind)到操作始终为 null

angularjs - 无法在 Angular Bootstrap 模式窗口中获取对剑道网格的引用

asp.net-mvc - KendoUI 网格 Ajax 绑定(bind)参数选择

javascript - 为什么会出现 Uncaught TypeError : Cannot read property 'dataSource' of undefined

javascript - 复选框问题