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

WCF RIA Insert header/detail

1 Answer 40 Views
DomainDataSource
This is a migrated thread and some comments may be shown as answers.
Curt
Top achievements
Rank 1
Iron
Curt asked on 17 Feb 2012, 09:43 PM
Hello

My project is using WCF RIA services, basic markup/code behind (no MVVM).

I would like a screen with a RadDataForm showing my header record (SalesOrder), the form is getting data from a RadDomainDataSource.  Beneath the form a grid showing the details (SalesOrderDetail) getting data from a second RadDomainDataSource.

I have the RIA services all setup with the INCLUDE decorations, etc.

I have a single button to submit everything, but am not sure the best way to add the child entities. I believe I need something like this:

SalesOrder currentSO = SOForm.CurrentItem as SalesOrder;
currentSO.SalesOrderDetails.Add(??);//How to get/cast the entities for the Add?
SODomainDataSource.SubmitChanges();

Thanks.

1 Answer, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 20 Feb 2012, 10:04 AM
Hi,

I believe that the official WCF RIA Services forums would have more information on this subject, since it is really a matter of WCF RIA Services architecture and falls beyond the scope of Telerik support.

In other words, if you were not using any Telerik controls at all and instead you were using the stock DataForm + the stock DataGrid + the stock DomainDataSoruce the question would be exactly the same.

Thank you for your understanding.

Kind regards,
Ross
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
DomainDataSource
Asked by
Curt
Top achievements
Rank 1
Iron
Answers by
Rossen Hristov
Telerik team
Share this question
or