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

Hierarchy Child Template Expansion issue

2 Answers 104 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Rohan
Top achievements
Rank 1
Rohan asked on 31 Oct 2014, 02:09 PM
I am implementing a grid hierarchy view on my UI. I have used hierarchy child template for this and it has 3 levels layer A, layer B and layer C. Now when I click to expand layer A, it ends up expanding layer B as well.

Is there any way to stop this? I do not want to expand layer B by default. Please suggest few ideas.

2 Answers, 1 is accepted

Sort by
0
Boris
Telerik team
answered on 03 Nov 2014, 02:19 PM
Hi Rohan,

In general RadGridView will not automatically expand all of your sub-hierarchies. For a more practical example I attached an updated version of the project from the Three level hierarchy support forum thread. 

A possible way to automatically expand / collapse all of the sub-hierarchies is to invoked the ExpandAllHierarchyItems() / CollapseAllHierarchyItems() methods somewhere in your code or have some other customization. In order to determine what exactly is causing this behavior, could you please provide us with code-snippets of all definitions both in XAML and code-behind connected to RadGridView?


Regards,
Boris
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.

 
0
Rohan
Top achievements
Rank 1
answered on 03 Nov 2014, 04:12 PM
Hi,

Thanks for the reply. I have found out my mistake. I was trying to bind DataLoaded event of second layer with a method which was not working.

I have changed the logic and it is working now.
Tags
GridView
Asked by
Rohan
Top achievements
Rank 1
Answers by
Boris
Telerik team
Rohan
Top achievements
Rank 1
Share this question
or