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

[Solved] Hierarchical RadGrid multiple NestedViewTemplates

2 Answers 154 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Josh
Top achievements
Rank 1
Josh asked on 16 Nov 2009, 03:23 PM
Hi support,

I did a bunch of searches, but I can't find anything related to having multiple NestedViewTemplates in a hierachical grid.  I wonder if it is possible.  That is, I would like to show a tab at each level in the hierarchy.  That is, it should look like the below

    <telerik:RadGrid> 
        <PagerStyle   
            <MasterTableView "> 
                <Columns> 
                    <telerik:GridBoundColumn>   
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn>   
                    </telerik:GridBoundColumn> 
                </Columns> 
                <NestedViewTemplate> 
                </NestedViewTemplate>                                                  
                <DetailTables> 
                    <telerik:GridTableView> 
                        <Columns> 
                            <telerik:GridBoundColumn>   
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn>   
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn>   
                            </telerik:GridBoundColumn> 
                        </Columns> 
              <NestedViewTemplate> 
              </NestedViewTemplate>                                                                      
                        <DetailTables> 
                            <telerik:GridTableView> 
                                <Columns> 
                                    <telerik:GridBoundColumn> 
                                    </telerik:GridBoundColumn>                                  
                                    <telerik:GridBoundColumn> 
                                    </telerik:GridBoundColumn>                                  
                                    <telerik:GridBoundColumn> 
                                    </telerik:GridBoundColumn>                                  
                                </Columns> 
                                <NestedViewTemplate> 
                                </NestedViewTemplate>                                                  
                            </telerik:GridTableView> 
                        </DetailTables>                        
                    </telerik:GridTableView> 
                </DetailTables>               
            </MasterTableView> 
        </telerik:RadGrid> 
          
 
 
 
 
When, I attempt to do this everything gets hidden after the first nestedviewtemplate is shown.

Is it possible?  Am I doing something wrong?

Josh

2 Answers, 1 is accepted

Sort by
0
Josh
Top achievements
Rank 1
answered on 16 Nov 2009, 03:29 PM
Support,

I figured I should add, the above post should look like the below:

GrandfatherKey                    First Name                    MiddleName                       LastName
1                                             John                               William                                Smith
        <NestedViewTemplate> allowing tabs etc.
        </NestedViewTemplate>
                           SonKey                    First Name                    MiddleName                       LastName
                           1                                John Jr.                          William                                Smith
                            <NestedViewTemplate> allowing tabs etc.
                            </NestedViewTemplate>
                                                           GrandSonKey                    First Name                    MiddleName                       LastName
                                                           1                                           John II                            William                                Smith
                                                            <NestedViewTemplate> allowing tabs etc.
                                                            </NestedViewTemplate>

Thanks,
Josh

0
Josh
Top achievements
Rank 1
answered on 16 Nov 2009, 05:49 PM
I believe I have found the answer to my own question.  It seems it is impossible to do what I have described using a single grid.  Rather, it seems it's necessary to nest multiple grids to do something similar.

Josh

Tags
Grid
Asked by
Josh
Top achievements
Rank 1
Answers by
Josh
Top achievements
Rank 1
Share this question
or