Can anyone let me know how can we change the value of kendo combobox dynamically.
Fiddle is here - http://jsfiddle.net/ashwyn/yL6w3/1/
In the above fiddle, when we click on click
then the shown value should be changed to three
(for eg.)
I found this link which list all datasource methods -
http://www.kendoui.com/documentation/framework/datasource/methods.aspx
The selection can be set programmatically by calling the select() method on the widget instance. The following for example will set the selection to 'Thing1'. Finally, if you are using MVVM with declarative initialization, you can bind the selection to a value on a View Model.
load("@Url. Action("Load", "Home")" + id); var selected = $('#typesCombo'). data('kendoComboBox'). val(); if (selected == '') { ... }
$("#ddl"). data("kendoDropDownList"). text();
The Kendo UI for Angular ComboBox is a form component that lets you choose from a list of options. It is a richer version of the <select> element and supports data binding, filtering, templates, and the entering of custom values.
If you know the value you want, you can also do:
$("#MyComboBox").data("kendoComboBox").value(id);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With