Search code examples
c#asp.netkendo-dropdownkendo-multiselect

Kendo DropDownList too slow while read dataSource


I have kendo dropdown/multiSelect... Each of which is linked to a controller method which returns 37,000 items...

It takes a lot of time to show data...

So,I thought We DON'T HAVE TO return 37000 items to the dropdowns.

Is it possible to stop that buffering issue??


Solution

  • if you are using a multiSelect consider using the MinLength option :

    Html.Kendo().ComboBoxFor(m => m.ObjectID)
                        //start autocompleting only after 3 char
                        .MinLength(3)
    

    And as suggested in the first comment you could also take only the first n results in the controler action.