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

Creating RadEditor from client code

1 Answer 87 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Carl
Top achievements
Rank 1
Carl asked on 05 Jul 2008, 09:09 AM
In my project, I want 20-30 editors on the page at one time. Previously we had been using a different open-source editor but it's a bit clumsy and wanted to start using Telerik's controls instead. We like them, however in the best case, RadEditor takes 0.3 seconds in the rendering stage on the server. That means RadEditor is unusable for our project unless we can come up with a solution.

With the open source editor, the solution was easy because we would just initialize the editor on the client, meaning no server burden at all other than simple script/image downloads.

Is this kind of thing possible with RadEditor? The 0.3 second rendering time is not really a terrible problem if we can at least let users start editing right away and let other editors render in the background.

Any solutions are appreciated -- our current solution is to go back to using the open-source editor.

Thank you!

1 Answer, 1 is accepted

Sort by
0
Tervel
Telerik team
answered on 09 Jul 2008, 08:54 AM
Hi Carl,

A significant part of the server-side rendering comes from the fact that the RadEditor is built on top of MS AJAX which uses reflection (heavily) for building the control initialization string to be sent to the client-side.
That said, you can provide faster serverside and clientside rendering for the new RadEditor by using the ToolProviderID property introduced recently. To use it you will need to upgrade to the latest Q1 SP2 (build 618) or to the just released Futures release.

Here is an online demo that features the ToolProviderID.
http://www.telerik.com/demos/aspnet/prometheus/Editor/Examples/ToolProvider/DefaultCS.aspx


Another possibility would be to re-design your page so that no 20 or 30 instances are loaded at once.Having 30 editors is unlikely to be the best possible user experience. Our suggestion is to consider using a panelbar or a tabstrip to organize the editors into several logical sections. Then you can further optimize the loading by using AJAX and UpdatePanels to load each section only when and if needed. While this approach is not as straightforward to implement as simply rendering a list of editors on the page, it seems to be the better option for providing improved user experience.


Sincerely yours,
Tervel
the Telerik team

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