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

[Solved] How to bind data of multiple level navigation property?

1 Answer 148 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
wg
Top achievements
Rank 1
wg asked on 25 Sep 2010, 04:52 PM
Hi,

I have some tables in Entity Framework 4 models like this.

Entity 1: Name:   Project   Property: Id Name PeopleCollections(Navigation Property to Entity 2)
Entity 2: Name:   People   Property: Id Name DocumentCollections(Navigation Property to Entity 3)
Entity 3: Name:   Document   Property: Id Name

I have a master-detial RadGridView and a domainDataSource(ddsProject) to load Project entity.

In the master grid. I set ItemSource like this ItemsSource="{Binding Data, ElementName=ddsProject}". Working well.

In the deail grid. I just want to show Entity 3 (Document) list, not Entity 2(People). How can I set the ItemSource of detail grid? I tried ItemsSource="{Binding Path=PeopleCollections.DocumentCollections}" . It doesn't work.


Thanks in advance,
Bill

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 30 Sep 2010, 12:01 PM
Hi,

 Can you verify your VS Output Window for binding expression errors? This should work properly if you have PeopleCollections property for your data item .

All the best,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
wg
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or