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

Binding object child collection to details

1 Answer 138 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rayne
Top achievements
Rank 1
Rayne asked on 04 Jan 2016, 05:00 PM

I'd like to display a child collection of my grid's object data source in the detail item template but I'm not sure how to do the databinding.

The grid is bound using the NeedDataSource event. and there are no available DataKeys that I can use because it builds the data in the code-behind.

How do I bind the child collection to a detail template so I can display in a grid-like format?

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 05 Jan 2016, 03:43 PM
Hi Rayne,

In order to bind the child items programmatically you can use the DetailTableDataBind event. Check out the following online example that illustrates the approach:



Regards,
Viktor Tachev
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Rayne
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or