Combobox disable and enable

3 posts, 0 answers
  1. Matthias
    Matthias avatar
    1 posts
    Member since:
    Feb 2012

    Posted 14 May 2012 Link to this post

    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. David OBrien
    David OBrien avatar
    19 posts
    Member since:
    Aug 2012

    Posted 16 Aug 2012 Link to this post

    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....
  3. Kendo UI is VS 2017 Ready
  4. beauXjames
    beauXjames avatar
    20 posts
    Member since:
    Aug 2012

    Posted 15 Feb 2013 Link to this post

    Not sure why they set it up as such, but change 'enable:' to 'enabled:'
Back to Top