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

Two Edit Boxes

3 Answers 32 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Stephen
Top achievements
Rank 2
Stephen asked on 19 Dec 2008, 05:33 AM
Is there a problem with having two RadEditor boxes on a form. I'm getting an error about "

Multiple controls with the same ID 'dialogOpener' were found. FindControl requires that controls have unique IDs.

when I have a form that dynamically adds two RadEditors but it works find on pages which only add one editor.

3 Answers, 1 is accepted

Sort by
0
Serrin
Top achievements
Rank 1
answered on 19 Dec 2008, 03:23 PM
Stephen,

My guess is this problem would come from adding two editors that have the same ID= tag, it will work fine with only one editor since only one would be defined as 'dialogOpener'.  When you're creating the editors, maybe try to give them unique names (i.e., if you're doing some iteration, use the iteration value and tack that onto the end of the ID assigned, so one would be dialogOpener1 and the other dialogOpener2, etc.). 
0
Stephen
Top achievements
Rank 2
answered on 19 Dec 2008, 03:52 PM
The obvious answer, and I had thought that this was taken care off. The problem is order of operation. You need to assign the unique ID BEFORE you set DialogHandlerUrl (which I just added in order to make my dialogs work with routing in place).
0
Serrin
Top achievements
Rank 1
answered on 19 Dec 2008, 06:33 PM
Ooh, good call.  I never realized the order of setting stuff was key in such a situation.  I'll have to remember that for next time I run into the Multiple controls error. :)
Tags
Editor
Asked by
Stephen
Top achievements
Rank 2
Answers by
Serrin
Top achievements
Rank 1
Stephen
Top achievements
Rank 2
Share this question
or