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

Client Side Control Instantiation

1 Answer 63 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Eric Boffeli
Top achievements
Rank 1
Eric Boffeli asked on 09 Jan 2009, 11:56 PM
I was wondering if it is possible to instantiate and instance of the RadEditor within the browser.  We have a very client-centric AJAX application that doesn't rely on the web server to generate the html that will be rendered in the client.  All the web server does is sends\retrieves raw data as well as serves up JS and XSLT files.  It is within these XSLT files that the html is defined.  Within some of these html layouts, we are using textarea tags to capture content and now would like to convert these to use a rich text editor.  I was wondering if it is possible to use the RadEditor in this situation since the server would not be able to render the html for the declarative syntax.

Thanks in advance,
Eric

1 Answer, 1 is accepted

Sort by
0
Nikolay Raykov
Telerik team
answered on 13 Jan 2009, 12:09 PM
Hi Eric,

For the time being RadEditor cannot be created in client-side. You could however render the editor invisible on the page and show it when you need it.

RadEditor offers a rich client-side API that will help you in this task. In order to show/hide the editor you could use the setVisible function - pass a true/false parameter value respectively. You could get and set the content of RadEditor by using get_html and set_html functions. In other words the client-side API makes the editor a perfect solution for client-side application scenarios.

You could use this approach for RadEditor in your application. If you have any problems you could open a support ticket and send us a sample working version of your project - we will do our best to help you.

All the best,
Nikolay Raykov
the Telerik team

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