WCF RIA Insert header/detail

2 posts, 0 answers
  1. Curt
    Curt avatar
    14 posts
    Member since:
    Jan 2012

    Posted 17 Feb 2012 Link to this post


    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?

  2. Rossen Hristov
    Rossen Hristov avatar
    2478 posts

    Posted 20 Feb 2012 Link to this post


    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,
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. DevCraft banner
Back to Top