Kendo UI, searchable Combobox

Posted by user2083524 on Stack Overflow See other posts from Stack Overflow or by user2083524
Published on 2014-05-17T21:04:40Z Indexed on 2014/05/28 9:27 UTC
Read the original article Hit count: 365

I am using the free Kendo UI Core Framework. I am looking for a searchable Combobox that fires the sql after inserting, for example, 2 letters. Behind my Listbox there are more than 10000 items and now it takes too much time when I load or refresh the page.

Is it possible to trigger the sql query only by user input like the autocomplete widget do?

My code is:

<link href="test/styles/kendo.common.min.css" rel="stylesheet" />
<link href="test/styles/kendo.default.min.css" rel="stylesheet" />
<script src="test/js/jquery.min.js"></script>
<script src="test/js/kendo.ui.core.min.js"></script>

 <script>
 $(document).ready(function() {

 var objekte = $("#objekte").kendoComboBox({
 placeholder: "Objekt auswählen",
 dataTextField: "kurzname",
 dataValueField: "objekt_id",
 minLength: 2,
 delay: 0,

 dataSource: new kendo.data.DataSource({
    transport: {
      read: "test/objects.php"
    },

    schema: {
        data: "data"
    }

 }),
 }).data("kendoComboBox");
 </script>

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about combobox