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

Binding to subentity

1 Answer 27 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Cris
Top achievements
Rank 1
Cris asked on 08 Jun 2011, 04:46 PM
Hi,

I have a grid which binds to an EntityModelDataSource which is formed from 2 entities:
PERSON[ID, NAME, SURNAME]
EMPLOYEE[EMPLOYEE_ID, PERSON_ID, etc]

An employee has a PERSON and only one.

If I bind a column to DataMemberBinding="{Binding EMPLOYEE_ID}" the data is displayed ok
If I bind to DataMemberBinding="{Binding PERSON.NAME} no data is displayed.

The data is loaded using ria like this:

public IQueryable<Employee> GetEmployees()
        {
            return this.ObjectContext.Employees.Include("PERSON").Where(x => x.PERSON_ID < 1000).OrderBy(x => x.PERSON_ID);
        }

How can I bind the column to the PERSON.NAME member?

Thanks,
Cristian

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 09 Jun 2011, 06:31 AM
Hello Cristian,

 Can you verify if this will work normally with standard Silverlight DataGrid?

Greetings,
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
Cris
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or