kendo-combobox

kendo ui select a specifix index/text during first load

安稳与你 提交于 2020-01-01 12:22:12
问题 The problem i am running into is that during the first load of the page i want to read the value from cookies if found, i want to change the theme that was stored in the cookie. not only want to change the them but i also want to select that item in the combo box so that it is in sync with the them that was applied. How can i select a specific item during initial page load, when i am constructing the combobox ? $(document).ready(function () { var initialized = false; // theme chooser drop

Kendo dropdown rebind using jquery

你。 提交于 2019-12-13 16:15:49
问题 I am trying to bind a list of SelectList Items to a Kendo dropdown in jquery using dropDown.setDataSource(result) event. But the issue is, the data displayed in the drop-down is showing as [object object] . $(document).ajaxStop(function () { var exportTypeDropDown = $("#exportTypeDropDown").data("kendoDropDownList"); if (dropDownLoaded == false && exportTypeDropDown!=null) { dropDownLoaded = true; var url = "@Url.Action("GetExportTypes", UiControls.ControllerName)"; $.ajax({ url: url, type:

How do I refresh a Kendo UI combo box?

此生再无相见时 提交于 2019-12-10 13:44:23
问题 I have an ASP.Net MVC Kendo UI combobox that is databound to a table with 1000's of records. I've set the MinLength property to 5 so I only return relevant results. The problem is, the user might need to change the text value all together. Is there a way to tell the control to refresh? Here's the code for the control... @(Html.Kendo().ComboBoxFor(x => x.Product) .Name("Product") .DataTextField("Name") // Display value .DataValueField("Id") //Return value .MinLength(5) .AutoBind(false)

How to set the auto width for combo box in Kendo UI?

断了今生、忘了曾经 提交于 2019-12-10 12:18:59
问题 I want to set the combo box width automatically based on the lengthiest text which is bound to the Combo box, so I tried like below, but I am able to see the auto size (width) only for drop down (drop down when clicking the combo) of the combo box, still the length is greater than expected, the overall length should be reduced to hold only 3 characters, am I missing something here? <input id="combobox" /> $("#combobox").kendoComboBox({ index: 0, dataSource: { data: ["One", "Two"] } }); var

kendo ui select a specifix index/text during first load

大兔子大兔子 提交于 2019-12-04 10:16:43
The problem i am running into is that during the first load of the page i want to read the value from cookies if found, i want to change the theme that was stored in the cookie. not only want to change the them but i also want to select that item in the combo box so that it is in sync with the them that was applied. How can i select a specific item during initial page load, when i am constructing the combobox ? $(document).ready(function () { var initialized = false; // theme chooser drop-down var cmb=$(".themeChooser").kendoDropDownList({ dataSource: [ { text: "Default" }, { text: "BlueOpal"