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

Combobox disable and enable

2 Answers 1884 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Matthias
Top achievements
Rank 1
Matthias asked on 14 May 2012, 08:52 AM
Hi,

First of all, Kendo UI is a very great framework for HTML5. thumbs up!

Now i have a small problem that i can't fix
i have a webpage that calls a webservice when the user triggered an event.
before sending the request, i disable the combobox so there the user is forced to wait untill the request handling is done.

function DoRequest()
{
$("#ComboBoxUrl").kendoComboBox({ enable: false });
Service.
DoSomething($("#ComboBoxUrl").val(), OnComplete, OnError, OnTimeOut);
}

When the handling is successfully done, there will be a callback function that re-enables the combobox
and show the response in a textbox.

function OnComplete(arg)
{
$("#txtReponse").val(arg);
$("#ComboBoxUrl").kendoComboBox({ enable: true });


Problem is: the combobox stays disabled after the callback. i copy-pasted the code line and changed the false param to true, so i was sure it wasn't a syntax error.

Do i do something wrong? is this a bug?

2 Answers, 1 is accepted

Sort by
0
David OBrien
Top achievements
Rank 1
answered on 16 Aug 2012, 07:17 PM
I am having this problem also
In chromes console I see this error....

  1. Uncaught TypeError: Object #<HTMLInputElement> has no method 'enable' /kendoui/:107


when I try and enable a combobox from within another function

Like in the change function of a combobox to enable the next combobox in the cascading chain....
0
beauXjames
Top achievements
Rank 2
answered on 15 Feb 2013, 07:20 PM
Not sure why they set it up as such, but change 'enable:' to 'enabled:'
Tags
ComboBox
Asked by
Matthias
Top achievements
Rank 1
Answers by
David OBrien
Top achievements
Rank 1
beauXjames
Top achievements
Rank 2
Share this question
or