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

disabling the kendo combobox deletes the datasource

1 Answer 89 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
subrat
Top achievements
Rank 1
subrat asked on 04 Jul 2014, 07:24 AM
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.

1 Answer, 1 is accepted

Sort by
0
subrat
Top achievements
Rank 1
answered on 04 Jul 2014, 07:42 AM
 I solved it. I am using readonly property now.
var combobox = $("#sourceColumn" + i).data("kendoComboBox");
                                                        combobox.readonly(true);
Tags
ComboBox
Asked by
subrat
Top achievements
Rank 1
Answers by
subrat
Top achievements
Rank 1
Share this question
or