How to access the attributes of Rad Editor from Client Side

Thread is closed for posting
2 posts, 0 answers
  1. Sailaja
    Sailaja avatar
    1 posts
    Member since:
    Jul 2012

    Posted 17 Jul 2012 Link to this post

    Hi,

    I've a rad editor on my page and I set the attributes of it as follows:

    rreSuperVisory.Attributes.Add("CommentTypeCode", ((int)CommentTypeCode.MRTLApprovalComment).ToString());     
      rreSuperVisory.Attributes.Add("UserId", UserId.ToString());

    I want to access these attributes through jquery from client side.

    Could you please tell me how is it possible ? If not, could you please suggest an alternate solution ?

    Thanks,
    Sailaja

  2. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 19 Jul 2012 Link to this post

    Hi,

    If the custom attribute is applied to the RadEditor's DIV wrapper you can obtain a reference to it using

    editor.get_element().getAttribute("TabIndex"));

    as shown in this forum thread: http://www.telerik.com/community/forums/aspnet-ajax/editor/tab-to-and-from-editor-as-textbox.aspx


    Regards,
    Rumen
    the Telerik team
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top