This question is locked. New answers and comments are not allowed.
Bastian Kraehmer
Top achievements
Rank 1
Bastian Kraehmer
asked on 24 Jan 2011, 09:18 AM
Hello, I use the hierarchical gridview in my application, but after loading the GridView the hierarchical entries are always collapsed. Is it possible to load the GridView with opened childs or at least to open them programmatically? Regards, Bastian Kraehmer
4 Answers, 1 is accepted
0
Hi,
Vlad
the Telerik team
You can use ExpandHierarchyItem() method to achieve your goal. For example:
RadGridView1.ExpandHierarchyItem(RadGridView1.Items[0]);
Vlad
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Bastian Kraehmer
Top achievements
Rank 1
answered on 24 Jan 2011, 09:32 AM
Hi,
thank you for that quick reply.
I was hoping that there would be a way to achieve that from inside of the xaml, since I'm using MVVM and my ViewModels don't know the Views.
But I guess I'll have to do that by an attached behavior or something equal in that case.
Regards,
Bastian Kraehmer
thank you for that quick reply.
I was hoping that there would be a way to achieve that from inside of the xaml, since I'm using MVVM and my ViewModels don't know the Views.
But I guess I'll have to do that by an attached behavior or something equal in that case.
Regards,
Bastian Kraehmer
0
Accepted
Hi,
Vlad
the Telerik team
You can do this with XAML as well - every row have IsExpanded property and you can set this with style.
Kind regards,Vlad
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Bastian Kraehmer
Top achievements
Rank 1
answered on 24 Jan 2011, 09:56 AM
Hi,
thank you. That worked just fine.
Regards,
Bastian Kraehmer
thank you. That worked just fine.
Regards,
Bastian Kraehmer
