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

How to access the attributes of Rad Editor from Client Side

1 Answer 103 Views
UI for ASP.NET AJAX in ASP.NET MVC
This is a migrated thread and some comments may be shown as answers.
Sailaja
Top achievements
Rank 1
Sailaja asked on 17 Jul 2012, 02:23 PM
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

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 19 Jul 2012, 04:10 PM
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.
Tags
UI for ASP.NET AJAX in ASP.NET MVC
Asked by
Sailaja
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or