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

Please help me with GridView Hierarchical data template

2 Answers 67 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Lantu Datinh
Top achievements
Rank 1
Lantu Datinh asked on 15 Jun 2011, 12:12 PM
Hi All,

I have a data structure like this:
Category consist of:
             List<Category> subcategory
             Product info.

At beginning i have a list of category and its infinite level of sub category.
How should i display all the levels as well as product information in RowDetailTemplate.

Currently i have no data to test on this. but what i have think of so far is:
<telerik:RadGridView HierarchyChildTemplate="{StaticResource HierachicalTemplate}"
                                             RowDetailsTemplate="{StaticResource RowDetailTemplate}">

and the HierachicalTemplate has its HierarchyChildTemplate="{StaticResource HierachicalTemplate}"

Is it the correct way to handle this. any other ways?
I really appriciate your time and your help! Thanks alot.

2 Answers, 1 is accepted

Sort by
0
Accepted
Ivan Ivanov
Telerik team
answered on 16 Jun 2011, 09:19 AM
Hi Lantu Datinh,

I have prepared a project for you that illustrates how to set a HierarchicalChildTemplate on RadGridView. Please, refer to it.

Greetings,
Ivan Ivanov
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
0
Lantu Datinh
Top achievements
Rank 1
answered on 14 Sep 2011, 08:26 AM
I am now able to use the Rowdetailtemplate and sets its own rowdetailtemplate in code via Loaded event.
Thanks.
Tags
GridView
Asked by
Lantu Datinh
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Lantu Datinh
Top achievements
Rank 1
Share this question
or