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

[Solved] Hierarchical DataTable

3 Answers 131 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Richard Harrigan
Top achievements
Rank 1
Richard Harrigan asked on 17 Jan 2011, 12:46 AM

Hi,

If you have two instances of the lightweight DataTable where one is the parent and the other is the child how would that be represented.

Thanks

Rich

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 17 Jan 2011, 08:32 AM
Hi,

 If you want you can represent them as hierarchy or row details. Other possible approach will be use classic master/details similar to this demo

Greetings,
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
Richard Harrigan
Top achievements
Rank 1
answered on 17 Jan 2011, 03:37 PM
I would like to use the hiarchy approach.  I viewed the example you provided but I did not see how the child gets attached to the correct parent.  I assume the example is handled by .net frameworks when using a data model.  What is the technique for doing this with DataTable.   Since I want to use lazy loading maybe you can recommend an alternate approach.  i.e. Can I add a HierarchyChildTemplate dynamically and pick up on the event when ezpand row is clicked?

Thanks
Rich
0
Vlad
Telerik team
answered on 20 Jan 2011, 03:02 PM
Hello,

You can declare statically a child RadGridView in HierarchyChildTemplate and use Loaded event of this child grid to bind it. 

Greetings,
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>>
Tags
GridView
Asked by
Richard Harrigan
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Richard Harrigan
Top achievements
Rank 1
Share this question
or