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

Disable DropDown

1 Answer 1823 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Dekel
Top achievements
Rank 1
Dekel asked on 17 May 2015, 08:03 AM
Hi,

 I am trying to disable kendo
dropdown list in javascript,

And it is not working for me.

Here
the code:

$(“#entityId").data("kendoDropDownList").enable(false);


Thanks,

1 Answer, 1 is accepted

Sort by
1
Iliana Dyankova
Telerik team
answered on 19 May 2015, 01:48 PM

Hi Dekel,

I believe this is not working because of syntax error in the quotation marks. Please try the following: 

$("#entityId").data("kendoDropDownList").enable(false);

Regards,
Iliana Nikolova
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
David
Top achievements
Rank 1
commented on 09 Jan 2024, 10:12 PM

Iliana, your code is exactly the same as Dekel's. 

I tried the same in my code and it's not working for me either.

Please advise.

Thanks.

Ivan Danchev
Telerik team
commented on 11 Jan 2024, 02:40 PM

Here's an example showing the previously suggested code for disabling a DropDownList working as expected: https://netcorerepl.telerik.com/woElvblS381UTvfI22

There are two DropDownLists in the linked example and the first one is disabled in the document.ready handler.

Tags
DropDownList
Asked by
Dekel
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Share this question
or