JQuery Clone()

4 posts, 0 answers
  1. saurabh
    saurabh avatar
    10 posts
    Member since:
    Oct 2008

    Posted 14 Dec 2009 Link to this post

    I have a RadEditor in a Div on a page. I use JQuery to clone that Div and try to use it multiple times on the page. But JQuery Clone command doesn't seem to work on RadEditor. The new RadEditor object does not render correctly.

    I wanted to know, if the RadEditor supports JQuery. And if it does, then is there any sample which I can refer to.
    If the radEditor does not support JQuery, then is there any way to add new RadEditors on the page using javascript.

    Thanks
    Saurabh.
  2. Rumen
    Admin
    Rumen avatar
    13843 posts

    Posted 15 Dec 2009 Link to this post

    Hi Saurabh,

    We are targeting the ASP.NET platform and RadEditor is an ASP.NET AJAX control, which depends on server-side creation. It is not possible to dynamically create RadEditor client-side, because the editor depends on a number of resources like links, colors, etc which are configured on the server as well as the editor's scripts are embedded in the Telerik.Web.UI.dll.
    When the cloneNode(true);  is executed then only the editor's HTML is cloned but not the editor's object and for that reason the editor is not editable and it cannot be made editable.

    For that reason our recommendation is to choose another approach to multiple the editor on the server.

    Kind regards,
    Rumen
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. lbartroli
    lbartroli avatar
    7 posts
    Member since:
    Jun 2011

    Posted 11 Jul 2011 Link to this post

    And which are this recommendations??
  4. Rumen
    Admin
    Rumen avatar
    13843 posts

    Posted 13 Jul 2011 Link to this post

    Hi,

    My idea is to create multiple editors dynamically. You can see an example how to create a new editor from the server in the following forum thread: http://www.telerik.com/community/forums/aspnet-ajax/editor/radeditor-exception-multiple-controls-with-the-same-id-page-were-found.aspx

    Kind regards,
    Rumen
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Back to Top