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

Problem Adding RadEditor Dynamically

2 Answers 87 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Harsimran
Top achievements
Rank 1
Harsimran asked on 18 Apr 2012, 01:33 AM
Hey!

I'm having trouble adding RadEditor to the page Dynamically

This is my code:
                            // RadEditor for HTML Editor
                            RadEditor editor = new RadEditor();
                            editor.Enabled = true;
                            editor.ToolbarMode = EditorToolbarMode.Default;
                            editor.EnableAjaxSkinRendering = true;
                            editor.Skin = "Office2010Blue";
                            editor.ContentAreaMode = EditorContentAreaMode.Div;
                            editor.RegisterWithScriptManager = true;
                            objControls.Controls.Add(editor);

Not sure what's wrong.  I'm using SharePoint, but I have configured SharePoint according to this guide: http://www.telerik.com/help/aspnet-ajax/moss-deploying-radcontrols.html

Thanks!

2 Answers, 1 is accepted

Sort by
0
Harsimran
Top achievements
Rank 1
answered on 19 Apr 2012, 06:43 PM
A little more information:

1. I'm adding the RadEditor inside of an UpdatePanel
2. The problem is that the RadEditor is not functional.  I cannot click anywhere, or perform any actions, or write any HTML.  It's like its disabled.

Many Thanks!
0
Rumen
Telerik team
answered on 20 Apr 2012, 03:01 PM
Hi,

My recommendation is to use the RadEditor for MOSS (in SharePoint 2007) or RadEditor for SharePoint 2010 (in SharePoint 2010) applications. They are especially designed to work in these environments and their File Browser dialogs use custom providers that are built to work with the SharePoint database.

If you still would like to use the editor in a custom SharePoint solution use the information provided in the following article: Using RadEditor in custom MOSS solutions.

Best regards,
Rumen
the Telerik team
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 their blog feed now.
Tags
Editor
Asked by
Harsimran
Top achievements
Rank 1
Answers by
Harsimran
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or