How do I disable specific items in the dropdownlist

I can not figure out how to disable specific items in my dropdownlist control. 

I tried using DropDownListFieldSettings.HtmlAttributes but it seems to do nothing at all. Either that or I simply don't know how to use it (which is more likely the case but I can't find any information on it either). All other controls seem to use Dictionaries for HtmlAttributes, but the dropdownlistfieldsettings uses a string. 

What do I need to do to disable an item in a dropdownlist control? Also, what is the correct way to use the DropDownListFieldSettings.HtmlAttributes?

3 Replies

SN Sevvandhi Nagulan Syncfusion Team February 13, 2020 11:33 AM UTC

Hi Corey,  
   
Greetings from Syncfusion support.  
   
We have already considered the reported requirement as feature at our end. It will be included in the any of the upcoming release. You can now track the reported feature from the below feedback link,  
   
   
Regards,  
Sevvandhi N  



JC Jacob Clinton June 26, 2023 03:18 PM UTC

Would be nice to have a cleaner way of achieving this but a workaround using Javascript is written into their documentation. 



KP Kokila Poovendran Syncfusion Team July 6, 2023 01:07 PM UTC

Hi Corey Thompson,


Thank you for your update. Upon reviewing our documentation regarding disabling specific items in the dropdown list using JavaScript, we can assure you that it provides comprehensive instructions and examples to help you implement the desired functionality successfully.


To assist you more effectively, it would be helpful if you could specify the particular section or step in the documentation where you are encountering difficulties.


Regards,

Kokila Poovendran.


Loader.
Up arrow icon