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

How to find control in ContentTemplate for RadContentTemplateTile on Client-side?

2 Answers 119 Views
TileList
This is a migrated thread and some comments may be shown as answers.
Josh
Top achievements
Rank 1
Josh asked on 09 Aug 2013, 02:52 PM
Can someone tell me how I can find a control in ContentTemplate of a RadContentTemplateTile?
For example: I have a RadTile with 3 RadContentTemplateTiles in one group. In each RadContentTemplateTile, I have a RadioButton. I want the RadioButton checked when the tile is selected and unchecked if the tile is not selected.

Thank you!

2 Answers, 1 is accepted

Sort by
0
Accepted
Marin Bratanov
Telerik team
answered on 13 Aug 2013, 08:45 AM
Hi Josh,

On the server you could use the FindControl method each container control exposes and on the client you could use, for example, jQuery to find the desired HTML element. An example that shows both options is attached here. You may also find useful this help article on the server selection event and the client-side API of the cotnrol.

Regards,
Marin Bratanov
Telerik
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 the blog feed now.
0
Josh
Top achievements
Rank 1
answered on 13 Aug 2013, 04:13 PM
Thank you! That was very helpful.
Tags
TileList
Asked by
Josh
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Josh
Top achievements
Rank 1
Share this question
or