Iterate through Editors

3 posts, 1 answers
  1. Fit2Page
    Fit2Page avatar
    345 posts
    Member since:
    Feb 2007

    Posted 29 Jun 2009 Link to this post

    Hi,

    I have several Editors in a Usercontrol through which I want to iterate client-side.

    I tried

    if ($telerik && Telerik.Web.UI.RadEditor)

    but this is giving me ALL editors, I want only the editors in a particular Usercontrol.

    Thanks for reply.

    Marc
  2. Answer
    Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 02 Jul 2009 Link to this post

    Hi,

    The $telerik.radControls is an array containing all RadControls on the page.
    You can use isInstanceOfType to check whether the control is of type RadEditor.
    To get the ID of the editor use editor.get_id(). Once you have the editor's ID you can check whether it contains the ID of the user control where the editor resides.

    You can find more information in the following KB article: How-to create a javascript array of all particular RadControls on the page.

    Greetings,
    Rumen
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Fit2Page
    Fit2Page avatar
    345 posts
    Member since:
    Feb 2007

    Posted 02 Jul 2009 Link to this post

    Thanks Rumen

    Works OK
Back to Top