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

Determine if Enabled

1 Answer 434 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
corey
Top achievements
Rank 1
corey asked on 11 Jul 2017, 07:24 PM

Is there any way to determine if a dropdown is enabled or not?

 

I've tried:

var dropDown = $("#selectionList).data("kendoDropDownList");

 

 

if (dropDown.attr("aria-disabled"))

if (dropDown.prop("disabled")

if (dropDown.is(":disabled"))

 

nothing is supported.

 

thank you.

1 Answer, 1 is accepted

Sort by
-1
Ivan Danchev
Telerik team
answered on 13 Jul 2017, 07:28 AM
Hello Corey,

Here's a dojo example, which shows how you can check whether the DropDownList is enabled.

Regards,
Ivan Danchev
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
FranckSix
Top achievements
Rank 2
Iron
Iron
Veteran
commented on 01 Jun 2023, 02:17 PM | edited

The Dojo worked fine with version 2017 but did not work anymore with version 2023 :-(
Ivan Danchev
Telerik team
commented on 05 Jun 2023, 11:09 AM

Hello FranckSix,

The rendering of the DropDownList has changed since 2017, additionally the k-disabled class is now used, instead of k-state-disabled.

Here's the updated dojo example, that works with version 2023.1.425: http://dojo.telerik.com/OQePaFen/2

 

Tags
DropDownList
Asked by
corey
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Share this question
or