This is a migrated thread and some comments may be shown as answers.

How to get the grid's rows count ? alert($('#Grid').data("kendoGrid").tbody.find('>tr.k-master-row').length); seems not right

1 Answer 153 Views
Grid
This is a migrated thread and some comments may be shown as answers.
PEIYANG
Top achievements
Rank 1
PEIYANG asked on 09 Apr 2013, 05:27 PM
How to get the grid's rows count ?My grid has data,but the code shows 0 row..
 alert($('#Grid').data("kendoGrid").tbody.find('>tr.k-master-row').length);

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 10 Apr 2013, 06:58 AM
Hi,

 This code would work if the following two conditions are met:

1. The code is executed *after* the grid is data-bound
2. The grid has master and detail rows

 If you need further assistance provide your complete grid configuration. 

Kind regards,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
PEIYANG
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or