How to learn kendo dropdownlist is enabled or disabled in javascript?
-
21-12-2019 - |
Question
I want to learn kendo dropdownlist is enabled or disabled for using in a if function.
For example if kendo dropdownlist is enabled my return value true, otherwise false
How can I do that?
Thanks for all answers
Solution
You can do very simply with
$('#selectId').prop('disabled');
In disabling, KendoUI disabled too the select, so :
var state = $('#selectId').prop('disabled');
OTHER TIPS
Just do this:
$("#your_dropdown_id").attr("aria-disabled");
If it is disabled this returns true else it returns false.
This should work:
$('#your_dropdown_id').data("kendoDropDownList").options.enabled;
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow