Hi,
i' am trying to create a autocomplete widget with many items (10.000). When i type in i recieved to many items and the hight of the autocomplete is not recognized.
and items appear out of the box. How can i solve this. I have no chace to reduce the data by the server via server filtering - it's not a really fast database..
Second question: The are two request made to the web service - why ?
My code is here:
01.guimodule.artikelautocomplete = (function () {02. 03. 04. var dsArtikel = new kendo.data.DataSource({05. 06. type: "json",07. pageSize: 20,08. transport: {09. read: {11. type: "post",12. dataType: "json"13. }14. }15. });16. 17. var artikelac = $("#artikelautocomplete").kendoAutoComplete({18. template: "<table><tr><td>"+19. "# var bez = data.b.split('|')##: data.n #</td><td>#: bez[0] #</td><tr>"+20. 21. "<tr><td></td><td>#:bez[1]#</td></tr>"+22. "</table>",23. dataSource: dsArtikel,24. height: 600,25. 26. filter: "contains",27. highlightFirst: true,28. dataTextField: "b"29. }).data("kendoAutoComplete");30. 31. //32. artikelac.list.width(400);33. 34. 35. 36. 37.console.log("Artikelautocomplete was initialized");38. 39.return {}40. 41. 42.}());
Dirk
