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

[Solved] Editor Toolbars Within ASCX Control

3 Answers 120 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Ed
Top achievements
Rank 1
Ed asked on 24 Feb 2008, 05:41 PM
I am running the editor component within an ascx control. With the toolbars set to show all the time this works fine. However, when I set the toolbar mode to be ShowOnFocus an error is cast if the control is reloaded.

Microsoft JScript runtime error: Sys.InvalidOperationException: Two components with the same id 'FOL_CommentEditor_toolbarMode' can't be added to the application.

Workarounds or fixes appreciated!

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 25 Feb 2008, 07:34 AM
Hi Ed,

Just a couple of days ago we had a similar question from another customer. We researched the issue and we found out that setting the <compilation debug="false"> in the web.config causes the exception to disappear.
This is in fact what we recommend you to do as well, since <compilation debug="false"> is the correct setting to use when in production mode - as it speeds execution up and it eliminates a lot of debug-specific MS AJAX code on the client.

If this does not solve the problem, please open a support ticket and send a sample runnable project that demonstrates the problem. I will examine it and try to provide a solution.


Best regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Darren Hall
Top achievements
Rank 1
answered on 03 Mar 2008, 06:06 PM
Hi,

I have also run into this problem when putting an editor into an ajax panel and though the workaround fixes the problem (and of course is recommended for production code) it is a pain when developing and debugging the site.

Is there likely to be a fix for this in the near future?

Darren.
0
Rumen
Telerik team
answered on 04 Mar 2008, 10:04 AM
Hi Darren,

We will do our best to fix this problem in the upcoming hotfix of the editor. Our suggestion is to temporary disable the debugging with <compilation debug="false"> in the web.config to avoid this error until we fix it.


Best regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Editor
Asked by
Ed
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Darren Hall
Top achievements
Rank 1
Share this question
or