Expand first HierarchyChildTemplate

2 posts, 0 answers
  1. StevenDale
    StevenDale avatar
    100 posts
    Member since:
    Apr 2007

    Posted 13 Sep 2010 Link to this post

    I have a grid which has a HierarchyChildTemplate .I want the HierarchyChildTemplate in the first row only to be expanded by default. Is there a way to do this?

    Thanks,

    Billy Jacobs 
  2. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 14 Sep 2010 Link to this post

    Hello Billy Jacobs,

    You to achieve this goal you can subscribe to the Loaded event of the grid and use ExpandHierarchyItem to expand the first row:

    void clubsGrid_Loaded(object sender, RoutedEventArgs e)
    {
        this.clubsGrid.ExpandHierarchyItem(this.clubsGrid.Items[0]);
    }


    All the best,
    Milan
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top