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

Can the editor be totaly instanciated or created on the client with javascript?

3 Answers 48 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Marc
Top achievements
Rank 1
Marc asked on 01 Dec 2008, 03:09 AM
Can the Rad editor for Asp.net ajax  be created on the client with the $create() method?

on the client with javascript?
or does it need to always be declarativly put on the page with tags etc...

3 Answers, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 02 Dec 2008, 04:32 PM
Hi Marc,

You can not use $create() method to create the RadEditor for Asp.net ajax on the client. You always need to put it on the page declaratively (<telerik:RadEditor....>) or create it in the code behind and add it to the controls collection of another control. This is required because all the HTML code for the control (toolbars, skin CSS, etc.) is rendered and sent by the sever. By simply using $create() there is no way to render the required HTML.

Best wishes,
Stanimir
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Marc
Top achievements
Rank 1
answered on 02 Dec 2008, 04:53 PM
I develop AJAX components, although not as complicated as Rad Editor but, I load all my components on the client with the $create method.
My components then retreive all HTML and other resources thru AJAX calls to services difined in my application.
could this not be also accomplished with Rad editor?
0
Tervel
Telerik team
answered on 05 Dec 2008, 04:31 PM
Hi Marc,

At present the editor sends a good deal of its HTML from the server-side. In addition to this it also outputs its script references and CSS links.
We do consider adding support for pure client-side creation (of course, as long as the scripts and the CSS are included manually to the page) - but for this to happen we will need to add a property of the editor to set it in this mode, as well as add code to the client-side rendering capabilities, as well as provide JSON for its Tools collection implementation.

At this point I am not able to provide you with an ETA when this might happen. We were considering this feature for our MVC support, but the approach that was eventually chosen to showcase the MVC support of RadControls for ASP.NET AJAX did not require this change.

Sincerely yours,
Tervel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
Marc
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Marc
Top achievements
Rank 1
Tervel
Telerik team
Share this question
or