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

RadEditor is not working while using Serverside events.

2 Answers 45 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Prathiba
Top achievements
Rank 1
Prathiba asked on 23 May 2013, 03:42 PM

 We are using telerik(2012.3.1016.40)

In our application we have a custom control which acts as a wrapper for telerik Rad editor.

In radeditor Image and hyperlink are working normally when I am not using any server events but when I use any events like 
'OnCommandExecuted'  or 'OnFocus' or 'OnTextChanged' , image manager and hyperlink manager aren't working as expected.
ImageManager will paste the image to somewhere on the page instead of pasting it inside Editor, creating a link is not at all possible using hyperlink manager.

Both these (ImageManager and HyperlinkManager ) are working fine if they are used with client-side events.
Please give some suggestions on rectifying the issue.

2 Answers, 1 is accepted

Sort by
0
Prathiba
Top achievements
Rank 1
answered on 27 May 2013, 01:02 PM
To add some more information to above post.

We are having a wrapper around the rad editor, it is our custom editor control. We have our own server side events in that cutom control. But whenever we have the server side events activated in our custom control, the rad editors's image manager is not pasting the image in the editor, instead it is pasting it outside the editor. Also the hyperlink manager is not inserting the link as required.  Is it because the radeditor won't support server side events? need answer for this, we are struggling with this issue for past 2,3 days, please help
0
Marin Bratanov
Telerik team
answered on 27 May 2013, 03:54 PM
Hi Prathiba,

Both managers in RadEditor work on the client - each dialog takes the needed information from the content area, works with it in a separate dialog and returns the appropriate data with JavaScript. The control does not offer such events out of the box and I advise that you test with it on the page outside of the custom control you have created. Other postback controls on the page should not break the functionality of the RadEditor as you can see in the online demos we have, for example here: http://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx. If you can reproduce such a problem with our online demos can you show us the exact steps so we can investigate the case?

Back to your question - in order to answer it we would need more information on what is the relation between the server-side events you have and the RadEditor managers, i.e. are you attempting to modify them in the server code, are you trying to invoke them from the server or something else entirely? The control has no server-side events on its own and any extensions you have made in this regard are not supported is the likely answer based on the provided information.


Regards,
Marin Bratanov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Editor
Asked by
Prathiba
Top achievements
Rank 1
Answers by
Prathiba
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or