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

Any built-in support for Navigation Properties from OData sources?

1 Answer 57 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Wayne
Top achievements
Rank 1
Wayne asked on 15 Jun 2012, 08:40 PM
I notice that out-of-the-box the RadGridView auto-generates columns for navigation properties from an OData source, regardless of whether or not they were actually expanded by the query. Is there anything built into the controls to more flexibly handle navigation properties? I was thinking it might be nice to automatically generate hyperlinks in these cells that would issue the appropriate query back to the service when clicked.

It looks like I could roll my own scheme by intercepting AutoGeneratingColumn and setting up a cell template, but then how would I determine the link information from the feed?

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 21 Jun 2012, 05:40 AM
Hi,

 I'm afraid that we do not have such built-in features in RadGridView. The DataContext for row/cell (and the component inside your custom CellTemplate) is the data item - if you cast it to your type you can access any property (including the navigation properties as well).

All the best,
Vlad
the Telerik team

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

Tags
GridView
Asked by
Wayne
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or