This is a migrated thread and some comments may be shown as answers.
Hierarchy with single instance of EntityDataSource
1 Answer 33 Views
This is a migrated thread and some comments may be shown as answers.
Brian Matuska
Top achievements
Rank 1
Brian Matuska asked on 22 Jun 2009, 07:50 PM
Hello,

Is it possible for RadGrid and its DetailTables to share a single instance of EntityDataSource?

So, if i have two tables Orders and OrderItems where OrderItems would have FK OrderID to Orders table.  Now with EntityDataSource property setup to "include" OrderItems, I should be able to define a DetailTable with DataMember = '<%# Eval("OrderItems) %>', and yes, sharing the same data source as MasterTableView.  I know this is possible in a ListView but I couldn't get it to work with RadGrid.

Thanks!

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 25 Jun 2009, 04:42 PM
Hello Brian,

I am not sure if I understand your scenario correctly, but generally you will need at least two DataSource controls to have hierarchy RadGrid

You can check the following example:
http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/declarativerelations/defaultcs.aspx

Sincerely yours,
Nikolay
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Brian Matuska
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Share this question
or