I have a dropwdown list, which values should be populated via ajax and server filtering based on the filterfield:
The Problem is, that the Ajax Callback happens only one time.
For example:
- If I type Foo, the `read_customers` action is called with Foo.
- After that, if I write Bar, there will be no callback.
What point is missing? I basicly want only the items that matches with the filter, because we are speaking about 50k datarows.
$(document).ready(
function
() {
$(
"#customerDropdown"
).kendoDropDownList({
filter:
"startswith"
,
dataTextField:
"CustomerName"
,
dataValueField:
"CustomerId"
,
dataSource: {
serverFiltering:
true
,
transport: {
read: {
url:
"/managecards/carddetails/read_customers"
,
data: GetCustomerFilterValue
}
}
}
});
});
function
GetCustomerFilterValue() {
return
{ filterValue: $(
"#customerDropdown"
).data(
"kendoDropDownList"
).filterInput.val() };
}
The Problem is, that the Ajax Callback happens only one time.
For example:
- If I type Foo, the `read_customers` action is called with Foo.
- After that, if I write Bar, there will be no callback.
What point is missing? I basicly want only the items that matches with the filter, because we are speaking about 50k datarows.