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

[Solved] How can I create a dynamic number of nested grids?

1 Answer 166 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Carlos
Top achievements
Rank 1
Carlos asked on 20 Mar 2013, 12:39 PM
Is there a demo on how I can make it so that I can any number of similar grids nested in each other like so:

=========================
==
+ RGrid 1 Row 1     ==
== + RGrid 1 Row 2     ==
==  
- RGrid 2 Row 1   ==
==    
+ RGrid 3 Row 1 ==  
==    
+ RGrid 4 Row 1 ==
==  
+ RGrid 2 Row 2   ==
== + RGrid 1 Row 3     ==
=========================

My guess would be to use a radgrid and dynamically generate its nestedviewtemplate with another grid then do the same x amount of times, but... not sure.   Or maybe it can be accomplished with a hierarchical grid?  Either way, I'd love an example.

Thanks for the help!

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 21 Mar 2013, 05:38 AM
Hi,

One suggestion is to use a hierarchy model as explained in the following demo.
Grid - Programmatic Binding

Thanks,
Shinu
Tags
Grid
Asked by
Carlos
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or