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

Trying to use editor as a purely client-side control.

1 Answer 72 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 10 Sep 2008, 08:23 AM
Hi all.

I'm currently working on a solution that involves defining the content of a custom-built control as a literal string. This means that certain portions of the site will not be server controls at all, but flat HTML, with normal static IDs. This will allow us to easily work with client-side javascript and JSON, and communicate with the server via a webservice.

I'm porting some of the old server-side aspx pages over to this new system, but have stumbled across a Rad Editor control. At the moment, the Editor tag would be reproduced exactly as it is defined on the page, and I'm guessing that won't work at all, as it's designed to be executed server-side and the resulting HTML returned.

Is there any way I can set up an editor control in client-side terms? The only thing I've thought of so far is to have a web method that can use a static class we have to execute an editor control in a page and return the resulting HTML, but I'm guessing it might not be that simple.

Any ideas?


Matt

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 11 Sep 2008, 10:40 AM
Hi Matt,

RadEditor for ASP.NET AJAX web control and by its nature it depends on server-side creation.

Currently, it is not possible to dynamically create RadEditor client-side, because the editor depends on a number of resources like links, colors, file managers.

The requested feature is logged in our ToDo list in regards to the new MVC architecture which requires client-side control rendering. However this decision does not depend only on RadEditor but on the whole RadControls suite. That is why I cannot provide an exact timing when we will be able to provide such ability to  create the RadControls suite entirely on the client.

Best regards,
Rumen
the Telerik team

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