Dear Telerik Team!
I would really like to know how to make an ajax-bound combobox reload its items with a given filter value. In the attached example I've got a editortemplate for Country1
When the Combobox gets focus, i want to reload it. I tried all this:
but ... nothing happens. The CountryLoading function is not called...
How can I make it reload ?
brgds
Malcolm Howlett
I would really like to know how to make an ajax-bound combobox reload its items with a given filter value. In the attached example I've got a editortemplate for Country1
@(Html.Kendo().ComboBoxFor(m => m)
.DataTextField("DisplayName")
.DataValueField("Code")
.AutoBind(true)
.DataSource(ds => ds
.Read(read => read.Action("CountryLoading", "Home"))
.ServerFiltering(true)
)
)
When the Combobox gets focus, i want to reload it. I tried all this:
function
CommidityFocus(e, upperE, elementName) {
var
combobox = $(elementName).find(
'span'
).children(
'input'
).data(
'kendoComboBox'
);
Combobox.value(
"hurz"
);
// No Reload ?!
combobox.search(
"hurz"
);
// No Reload ?!
combobox.dataSource.read();
// No Reload ?!
}
but ... nothing happens. The CountryLoading function is not called...
How can I make it reload ?
brgds
Malcolm Howlett