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

RadGrid Expand all Detail Tables at Root Level - Client

1 Answer 971 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Aret
Top achievements
Rank 1
Aret asked on 10 Jun 2014, 01:21 PM
I have a radgird that has a three level hierarchy.  I want to be able to expand ALL levels of a specific record when the expand button is clicked at the ROOT level of the radgrid.  **My radgrid may have two or three detail tables at one level with hiearchy levels binded to some of those tables.  I want all those levels to be opened with one click at the root level for a specific record in my radgrid.  I am using HierarchyLoadMode="Client" so I believe I need to code this in javascript.  Refer to the picture attached to this post to visually see my RadGrid.  Please Assist!

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 13 Jun 2014, 10:48 AM
Hello Aret,

In order to have all items expanded when the expand button is clicked you could set the HierarchyDefaultExpanded property for the DetailTable to true.

Additionally if you would like to provide the user with the option to collapse or expand all items manually you could set the EnableHierarchyExpandAll property to true for the GridTableViews.

Let me know if this helps.

Regards,
Viktor Tachev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Aret
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or