This is a migrated thread and some comments may be shown as answers.

Dropdownlist Serverfilter reads Datasource only one time

1 Answer 77 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Günter Welzel
Top achievements
Rank 1
Günter Welzel asked on 07 Jun 2016, 10:35 AM
I have a dropwdown list, which values should be populated via ajax and server filtering based on the filterfield:

$(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.

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 09 Jun 2016, 07:31 AM
Hi Günter,

I am not sure exactly where the problem comes from. The same configuration is used in this demo where the filtering works as expected on my side.

The only difference between the demo page and your scenario is that the demo uses oData which shouldn't be relevant to the issue that you described.

Would it be possible to make your service public and create a Kendo Dojo example that demonstrates the issue? In this way I will be able to examine further and provide you with a concrete recommendations.

Thank you in advance for the cooperation.

Regards,
Alexander Valchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
DropDownList
Asked by
Günter Welzel
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or