2

Hello Kendo UI users,

I came across a strange problem, where the CAPACITY of AUTOCOMPLETE is only upto 1000.

How do I increase it? because I need it for over 3000 values.

I checked for autocomplete function in kendo.all.min.js, with no success.

Any Help ?

Here is my code

var DS = new kendo.data.DataSource({
             type: "odata",                                                     
                    transport: {
                    read: {                             
                        url: "http://domain/news/_vti_bin/listdata.svc/translatorList/",                                
                        dataType: "json"                                
                        }                                
                   }
            });
 $("#translator").kendoAutoComplete({  
                dataTextField: "Deutsch",                       
                dataSource: DS,
                  change: function(e) {
                    var value = this.value();
                    $.getJSON("http://Domain/news/_vti_bin/listdata.svc/WZlist?$filter=startswith(Deutsch,'" + value + "')",function(d){
                        $('#res').val(d.d.results[0].Englisch);                             
                    });
                  }
              });
1
  • Please show your code. Also, if you have that many values, think about using server-based autocomplete, where you have no upper limit.
    – Tomalak
    May 31, 2013 at 12:28

2 Answers 2

3

You should use Server Filtering, as defined here:

http://demos.kendoui.com/web/autocomplete/serverfiltering.html

This will allow you to do any filtering you need server side and return a minimal number of rows to the client.

Even the limit of 1,000 for client-side filtering is a bit much, in my opinion!

0
0

Try to set pageSize:

$(document).ready(function(){
 $("#autoComplete").kendoAutoComplete({
  minLength: 3,
  dataTextField: "Name", // JSON property name to use
  dataSource: new kendo.data.DataSource({
   type: "odata", // specifies data protocol
   pageSize: 3000, // limits result set
   transport: {
    read: "http://odata.netflix.com/Catalog/Titles"
   }
  })
 })
});
4

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.