New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

Custom Attributes


The get_attributes().getAttribute(attributeName) method does not work.


By design all custom attributes which are valid html attributes (such as "type", "onclick" etc) are rendered as html attributes and are not serialized in the attributes collection. You can still access them on the server-side though. If you need to access them on the client-side you can use this code:

var myValidHtmlCustomAttribute = node.get_textElement().getAttribute('type');


Avoid using names of custom attributes which are valid html attributes. These include:











































































See Also

In this article