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

Iterating through data source when using server side grouping

1 Answer 134 Views
Grid
This is a migrated thread and some comments may be shown as answers.
RoundAbout
Top achievements
Rank 1
RoundAbout asked on 31 Jul 2014, 06:15 PM
I have an ASP.NET MVC application that is using server side grouping.  I found that when grouping is used in the grid that the grid's dataSource.data() has nested data inside it.  The nesting depth varies based upon how many columns are grouped.  What is the recommended way to iterate through the rows in the data source when server side grouping is used?

1 Answer, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 04 Aug 2014, 10:36 AM
Hi RoundAbout,

Basically, you can use the same approach as you would when traversing any other tree structure. While iterating you can check the "items" and "hasSubgroups" properties and decide whether to go deeper or move to the next sibling. 

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