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

[Solved] Dynamic addition of editors

2 Answers 96 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Social_Quotient
Top achievements
Rank 1
Social_Quotient asked on 01 Jan 2008, 11:15 PM
I have a page that I am trying to build that will allow me to dynamically add "containers" of content, each being an editor. This is something very similiar to weebly.com where using a combination of the doc control, docs will let a user build a page. My main road block is that as I create new docs I need to have each be its own editor.

Any ideas?

Another way to think of what I am trying to do is

This demo
http://www.telerik.com/DEMOS/ASPNET/Prometheus/Dock/Examples/DynamicDocks/DefaultCS.aspx 

But each new doc has a text box and editor in it

Thanks
John

2 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 02 Jan 2008, 12:54 PM
Hi John,

Here is how to programmatically add the editor to the RadDock's content container:

            RadDock dock = CreateRadDock();
            RadEditor editor = new RadEditor();
            editor.Height = Unit.Pixel(150);
            dock.ContentContainer.Controls.Add(editor);

For your convenience I have attached a sample working project that you can test and modify on your side.

Best wishes,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Social_Quotient
Top achievements
Rank 1
answered on 03 Jan 2008, 04:45 AM
Thanks for the help
Tags
Editor
Asked by
Social_Quotient
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Social_Quotient
Top achievements
Rank 1
Share this question
or