Kendo Combobox.value(x) Not Working Correctly
I'm trying to set value of kendo combobox dynamically, but when trying like: var lvl1 = $('#level1Id').data('kendoComboBox'); var lvl2 = $('#level2Id').data
Solution 1:
Take a look at this fiddle: http://jsfiddle.net/pvanhouten/qb8rD/1/. I tried to show how you can get both the currently selected text (apple) and the selected value (1). You can also type a value into the text input to set the selected value of the combo box. If you type in apple
, it will select the apple
entry from the combo box. If you type in something that isn't in the combo box list, it will set the value of the combo box to that value and both the id and text for the currently selected item will be the value that you type in. Does that help at all?
Post a Comment for "Kendo Combobox.value(x) Not Working Correctly"