Navigation Properties

3 posts, 0 answers
  1. Nick
    Nick avatar
    10 posts
    Member since:
    Sep 2010

    Posted 10 Nov 2011 Link to this post

    I am new to using the DataServiceDataSource Telerik control.  I have a RadGridView with data from a "Banks" table. [this part is working]  That Banks table has a navigation property(foreign key relationship) with a "Contacts" table.

    How can I pass the BankID parameter and display all Contacts with that BankID to a grid?

    Thanks,
    Jorge
  2. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 11 Nov 2011 Link to this post

    Hello Jorge,

    Here you can see an online example of  a master-details implementation. This example follows the MVVM pattern and that is why we are using the collection called QueryableDataServiceCollectionView<T>. This is the same collection that the RDSDS control is internally using and is designed to be used in MVVM scenarios. The example could easily be re-worked to use two RDSDS controls instead of the two collections.

    Let me know if you need further assistance.

    All the best,
    Ross
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
  4. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 11 Nov 2011 Link to this post

    Hi Jorge,

    I have attached a sample project with two controls for your convenience. Please explore it to see how to achieve master-details. The key to this is filtering, i.e. FilterDescriptors.

    I hope this helps.

    Best wishes,
    Ross
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top