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

[Solved] How can I enable and disable a drop down list item in a list?

3 Answers 1641 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Devna
Top achievements
Rank 1
Devna asked on 24 Nov 2014, 03:21 AM
Hi,
I have a dropdown list of say

-Save
-Open
-List1
-List2
-List2
- Exit

At my initial display of the list, I want only "Open" and "Exit" to be enabled for the user to select. Rest of the List items should be disabled for the user to select. Also, the Drop down should be enabled to see the options available.

How can I achieve configuring the list items as enabled and disabled at runtime?

Thanks and Regards
Devna

3 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 25 Nov 2014, 12:34 PM
Hello Devna,

Currently, Kendo UI DropDownList widget does not support disabling items. One possible workaround is to hide the items that are disabled by removing the corresponding data item from widget's data source. Check this demo for a better understanding.

Regards,
Georgi Krustev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Devna
Top achievements
Rank 1
answered on 25 Nov 2014, 09:55 PM
Thanks Georgi. Is there a possibility that this feature can be added to dropdown list?

Regards
Devna
0
Georgi Krustev
Telerik team
answered on 26 Nov 2014, 07:42 AM
Hello Devna,

Could you cast your  vote for the UserVoice item opened on the same subject? We will determine whether to schedule this feature for further investigation based on the users interest.

Regards,
Georgi Krustev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
DropDownList
Asked by
Devna
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Devna
Top achievements
Rank 1
Share this question
or