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

Iterate through Editors

2 Answers 34 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
Fit2Page asked on 29 Jun 2009, 01:07 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 02 Jul 2009, 11:58 AM
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.
0
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
answered on 02 Jul 2009, 02:05 PM
Thanks Rumen

Works OK
Tags
Editor
Asked by
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Rumen
Telerik team
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or