Hi,
I wish to create a combobox which when user enter 3 character
then the data source retrieve filtered data from server with the POST variable of keyword.
But i cant make the data source retrieve new data with combobox text, here is my code:
I wish to create a combobox which when user enter 3 character
then the data source retrieve filtered data from server with the POST variable of keyword.
But i cant make the data source retrieve new data with combobox text, here is my code:
var combo=$("#input_customer").kendoComboBox({
dataTextField: "title",
dataValueField:"entry_id",
filter:"contains",
minLength: 3
}).data("kendoComboBox");
var customer_ds=new kendo.data.DataSource({
transport: {
read: {
type:"POST",
dataType: "json",
serverFiltering:true,
data:{keywords:combo.text()},
url: "ajax/customer"
}
}
});
$("#input_customer").data("kendoComboBox").setDataSource(customer_ds);