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

3 posts, 1 answers
  1. Josh
    Josh avatar
    4 posts
    Member since:
    Dec 2012

    Posted 09 Aug 2013 Link to this post

    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. Answer
    Marin Bratanov
    Admin
    Marin Bratanov avatar
    3596 posts

    Posted 13 Aug 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Josh
    Josh avatar
    4 posts
    Member since:
    Dec 2012

    Posted 13 Aug 2013 Link to this post

    Thank you! That was very helpful.
Back to Top