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

Hierarchy with ORM Open Access Association

2 Answers 63 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tajes
Top achievements
Rank 1
Tajes asked on 17 Feb 2011, 06:22 PM
Hello,
   I'm using telerik ORM Open Access and telerik ASP.net AJAX web components. I want to setup a RadGrid to show hierarchy with two related entities of ORM Open Access.
    I was looking for in all the forum pages, in the blogs, in the documentation. All examples use tableDataSources populated from database directly. I was serching in the Open Access forum also.
   What I do is set in code behind the datasource of the RadGrid with a linq query from Open Access. Now, I want to set one entity like datasource of MasterGrid and a related Entity like datasource of NestedGrid. The relation is a "one to many" association managed by ORM Open Access Domain Model.

   Is there any way to do it?

Thanks in advance, and sorry for my English.

2 Answers, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 23 Feb 2011, 03:17 PM
Hello Ivan,

You should use the DetailDataBind event of the grid as demonstrated in the following online example:
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/detailtabledatabind/defaultcs.aspx

Of course, you should be constructing linq queries to get the detail data based on the parent item's parameters.

Hope it helps.

All the best,
Tsvetoslav
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Tajes
Top achievements
Rank 1
answered on 23 Feb 2011, 05:44 PM
Thanks. I will try it.
Tags
Grid
Asked by
Tajes
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Tajes
Top achievements
Rank 1
Share this question
or