RadEditor is not working while using Serverside events.

3 posts, 0 answers
  1. Prathiba
    Prathiba avatar
    4 posts
    Member since:
    May 2013

    Posted 23 May 2013 Link to this post

     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. Prathiba
    Prathiba avatar
    4 posts
    Member since:
    May 2013

    Posted 27 May 2013 Link to this post

    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
  3. Marin Bratanov
    Admin
    Marin Bratanov avatar
    4609 posts

    Posted 27 May 2013 Link to this post

    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.
Back to Top