Hi,
I have two entities, User and ContactDetails which are modelled using the Entity Framework. A single "user" record maps to a single "ContactDetails" record.
What I want to do is list various fields from the User and Contact details and show them in the grid, as this is a 1:1 link I need to show them one a single grid line.
In DataServices I can do this efficiently using something along the lines of "http://server/DataService.svc/UsernameSet?$expand=ContactDetails" which will return me what I need. However I cannot see how to do this with the grid control as I can only specify a single table name in the client settings.
Regards,
Richard
I have two entities, User and ContactDetails which are modelled using the Entity Framework. A single "user" record maps to a single "ContactDetails" record.
What I want to do is list various fields from the User and Contact details and show them in the grid, as this is a 1:1 link I need to show them one a single grid line.
In DataServices I can do this efficiently using something along the lines of "http://server/DataService.svc/UsernameSet?$expand=ContactDetails" which will return me what I need. However I cannot see how to do this with the grid control as I can only specify a single table name in the client settings.
Regards,
Richard
| <telerik:RadGrid ID="RadGrid1" runat="server"> |
| <MasterTableView> |
| <Columns> |
| <telerik:GridBoundColumn DataField="Id" HeaderText="ID" DataType="System.Int32"/> |
| <telerik:GridBoundColumn DataField="LoginId" HeaderText="Login Name" DataType="System.Int32"/> |
| <telerik:GridBoundColumn DataField="ContactDetails.FullName" HeaderText="Contact Name" DataType="System.String"/> |
| </Columns> |
| </MasterTableView> |
| <ClientSettings> |
| <DataBinding Location="DataService.svc" CountPropertyName="UsernameSetCount"> |
| <DataService TableName="UsernameSet" /> |
| </DataBinding> |
| </ClientSettings> |
| </telerik:RadGrid> |