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

Variable Column Layout for Child Grids

1 Answer 9 Views
GridView
This is a migrated thread and some comments may be shown as answers.
John Campbell
Top achievements
Rank 1
John Campbell asked on 16 Apr 2010, 10:10 AM
I would like to know if it is possible to have a different column layout for child grids depending on the parent row. 

In our solution, the column layout of the child level would be data driven and generated in code.  Also, all the child levels would be expanded at the outset and the user would not be able to collapse.

Can you let me know whether these things are possible and also point me to any relevent samples or suggest which methods, properties or events would be useful.

Thanks in Advance

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 19 Apr 2010, 07:54 AM
Hello,

Indeed this is possible - you can modify the child grid similar to our First Look demo (Loaded event of the child grid). DataContext of the child grid is your parent data item and you can get parent row using ParentRow property of the child grid to set IsExpandable to false. To expand child grids you can use ExpandAllHierarchyItems() - please check this application for more info.

Regards,
Vlad
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
John Campbell
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or