We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Setting html attributes on control itself

Thread ID:





121430 Dec 14,2015 02:17 PM UTC Dec 17,2015 01:30 PM UTC ASP.NET MVC 4
Tags: DropDownList
Asked On December 14, 2015 02:17 PM UTC

Hi all
I am trying to set a html attribute on a drop-down list. However, it is setting that attribute on the span which contains the input.

Can anybody help me with this?


Arun Palaniyandi [Syncfusion]
Replied On December 16, 2015 02:08 PM UTC

Hi Rami,

Thanks for contacting Syncfusion support.

Through HtmlAttributes property, we will add the attributes to wrapper of input element instead input element except the following attributes disabled, required and readOnly.  So we suggest you to add the attributes to element directly by getting it from DropDownList object if it need.

The following JS Playground sample will show case the demo for the requirement.


Please let me know if any concerns.


Arun P

Replied On December 16, 2015 02:11 PM UTC

I was wondering if there is any way to add them directly to the input itself, by using the EJ API, for situations in which I cannot use JavaScript


Arun Palaniyandi [Syncfusion]
Replied On December 17, 2015 12:57 PM UTC

Hi Rami, 

Sorry for the inconvenience.

Currently, we don’t have the option for setting the html attributes on input itself so we are considering this as a usability feature. We have created an incident in your account kindly follow up the incident for further queries.  

Please let me know if any concerns.


Arun P

Replied On December 17, 2015 01:30 PM UTC

Thank you


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon