0

I have the below autocomplete set to static dataSource

$("#search").kendoAutoComplete({
    dataTextField: AutoCompletedataTextField,
    filter: "startswith",
    ignoreCase: true,
    pageSize: 10,
    dataSource: tempArray,           
});

I need to get only top 10 items to be displayed in the control. how can I achieve this?

Mohammad
  • 21,175
  • 15
  • 55
  • 84
Wael Joulani
  • 167
  • 2
  • 4
  • 14

1 Answers1

0

I solved it by setting the page size inside the dataSourceBlock

 dataSource: {
    data: tempArray,
    pageSize: 10
}
Wael Joulani
  • 167
  • 2
  • 4
  • 14