Hierarchy Child Template Expansion issue

3 posts, 0 answers
  1. Rohan
    Rohan avatar
    2 posts
    Member since:
    Oct 2014

    Posted 31 Oct 2014 Link to this post

    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. Boris
    Admin
    Boris avatar
    276 posts

    Posted 03 Nov 2014 Link to this post

    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.

     
  3. Rohan
    Rohan avatar
    2 posts
    Member since:
    Oct 2014

    Posted 03 Nov 2014 Link to this post

    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.
Back to Top