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

Navigation Properties

2 Answers 38 Views
DataServiceDataSource
This is a migrated thread and some comments may be shown as answers.
Nick
Top achievements
Rank 1
Nick asked on 10 Nov 2011, 11:15 PM
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 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 11 Nov 2011, 09:57 AM
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 >>

0
Rossen Hristov
Telerik team
answered on 11 Nov 2011, 10:18 AM
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 >>

Tags
DataServiceDataSource
Asked by
Nick
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or