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

Show first element of a related collection

1 Answer 64 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tajes
Top achievements
Rank 1
Tajes asked on 09 May 2011, 11:30 AM
Hello,
I'm using Telerik OpenAccess with Telerik ASP.NET Ajax controls. I'm wondering how can I show the first elemnt of a related collection in a column of the RadGrid.
I can do it using the itemDataBound event, but I want to know if is possible to do it configurin the radgrid. I tried to use First<T>() method of the colletion in the column property DataField ( DataField="relatedCollectionNavigationProperty.First<MyEntity>()"), but unsuccessfully.

Thanks in advance, and sorry for my bad explanation.

1 Answer, 1 is accepted

Sort by
0
Mira
Telerik team
answered on 12 May 2011, 09:20 AM
Hello Tajes,

Please examine the following help topics to see how to bind the RadGrid to custom collections:
Binding to SubObjects
Tips when binding to custom collections
Binding to nullable objects

I hope this helps.

Best wishes,
Mira
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Tajes
Top achievements
Rank 1
Answers by
Mira
Telerik team
Share this question
or