This is a migrated thread and some comments may be shown as answers.
Radgrid using EntityDataSource with Repeater
1 Answer 23 Views
This is a migrated thread and some comments may be shown as answers.
Jronny
Top achievements
Rank 1
Jronny asked on 30 Nov 2011, 10:02 AM

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

Sort by
0
Tsvetina
Telerik team
answered on 05 Dec 2011, 08:12 AM
Hi Jronny,

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.

Regards,
Tsvetina
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
Tags
Grid
Asked by
Jronny
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or