Note that there are some explanatory texts on larger screens.

plurals
  1. POHow can I optimize datasource for Kendo UI Combobox with 5000 items?
    primarykey
    data
    text
    <p>In my test -> <a href="http://jsfiddle.net/olragon/642c4/12/" rel="nofollow">http://jsfiddle.net/olragon/642c4/12/</a>, KendoUI Combobox cannot run with 5000 items, how can I make it work without calling severside data source or this is limit of KendoUI?</p> <p><strong>HTML</strong></p> <pre><code>&lt;h3&gt;T-shirt Fabric&lt;/h3&gt; &lt;input id="fabric" placeholder="Select fabric..." /&gt; </code></pre> <p><strong>JS</strong></p> <pre><code>/** * Returns a random integer between min and max * Using Math.round() will give you a non-uniform distribution! */ function getRandomInt (min, max) { return Math.floor(Math.random() * (max - min + 1)) + min; } $(document).ready(function() { var superData = [] , data = [ { text: "Cotton", value: "1" }, { text: "Polyester", value: "2" }, { text: "Cotton/Polyester", value: "3" }, { text: "Rib Knit", value: "4" } ]; for(var _i=0; _i&lt;5000; _i++) { var randomEntry = data[getRandomInt(0,data.length-1)]; randomEntry.text += '-' + _i; randomEntry.value += _i; superData.push(randomEntry); } // create ComboBox from input HTML element $("#fabric").kendoComboBox({ dataTextField: "text", dataValueField: "value", dataSource: superData, filter: "contains", suggest: true, index: 3 }); }); </code></pre> <p><strong>Update</strong></p> <ul> <li>Fiddle link was updated.</li> <li><a href="http://feedback.kendoui.com/forums/127393-kendo-ui-feedback/suggestions/2944430-combobox-support-for-paging-and-virtual-scrolling" rel="nofollow">Virtual scrolling and paging for Combobox was not yet supported by KendoUI</a></li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload