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

How to merge ChildTable columns with its parent table?

1 Answer 48 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Timothy Liu
Top achievements
Rank 1
Timothy Liu asked on 02 Aug 2010, 01:05 AM
Dear Sir,

I have Teacher class and Student class, both of them have Id/Name/Age properties. Student has a property named TeacherId.
I show a list of teachers in a RadGridView and use another RadGridview as its child table. My question is - how to merge these two grid views' columns, make them look like a single grid view. (Please see attachment.)

NOTE: Because I must retrieve data from web service when I click the "+" to expand a Teacher row, so, I cannot use RadTreeListView.

Thanks and Regards,
Tim

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 02 Aug 2010, 07:11 AM
Hi,

 You can still use RadTreeListView no matter how the data are retrieved however you will need to use MVVM instead control events, etc. If you create your own model similar to this blog post RadTreeListView will not know that your data are retrieved on demand using service. 

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
Timothy Liu
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or