I am making a Telerik Radgrid with EntityDataSource control as its Datasource.
The current table has a Many-To-Many relationship with a second table. I wanted to show the list of Title (field) of the second table on a repeater inside a GridTemplateColumn.
Is it possible to fill the repeater with the list of object from the second table? If it is, then how?
Thanks a lot.
1 Answer, 1 is accepted
answered on 05 Dec 2011, 08:12 AM
If you want to bind the Repeater to an EntityDataSource, too, what you can do is:
1. Put the Repeater and the datasource control inside the ItemTemplate declaration of the GridTemplateColumn.
2) Then, you could also add a Label (Visible="false") and bind it to the ID field of the current row.
3) In your EntityDataSource's WhereParameters use the Label as a ControlParameter to get the corresponding records.
I hope this helps.
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now