disabling the kendo combobox deletes the datasource

2 posts, 0 answers
  1. subrat
    subrat avatar
    4 posts
    Member since:
    Dec 2010

    Posted 04 Jul 2014 Link to this post

    I am trying to disable the kendo combobox.

        $("#comboBoxid").kendoComboBox({
                                                                enable: false
                                                            });

    this makes the _current property and datasource's data property  null.
     $("#comboBoxid").data(constKendoComboBox).current() is null.

    How do I stop this? I don't want to delete the data attached to the kombobox.
  2. subrat
    subrat avatar
    4 posts
    Member since:
    Dec 2010

    Posted 04 Jul 2014 in reply to subrat Link to this post

     I solved it. I am using readonly property now.
    var combobox = $("#sourceColumn" + i).data("kendoComboBox");
                                                            combobox.readonly(true);
  3. Kendo UI is VS 2017 Ready
Back to Top