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

Expand first HierarchyChildTemplate

1 Answer 93 Views
GridView
This is a migrated thread and some comments may be shown as answers.
StevenDale
Top achievements
Rank 2
StevenDale asked on 13 Sep 2010, 05:32 PM
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 

1 Answer, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 14 Sep 2010, 01:29 PM
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
Tags
GridView
Asked by
StevenDale
Top achievements
Rank 2
Answers by
Milan
Telerik team
Share this question
or