This question is locked. New answers and comments are not allowed.
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:
Thanks.
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.