Kendo UI AutoComplete datasource transport reads only once

后端 未结 1 686
攒了一身酷
攒了一身酷 2020-12-31 07:39

I\'m becoming crazy with Kendo UI AutoComplete component. I\'m using my own functions to access data with jQuery, so I have to set the AutoComplete dataSource.transport.read

相关标签:
1条回答
  • 2020-12-31 08:06

    You should enable serverFiltering in order for the data source to make requests every time.

    $('#autocomplete').kendoAutoComplete({
        minLength : 3,
        filter : "contains",
        dataValueField : "key",
        dataTextField : "value",
        dataSource : new kendo.data.DataSource({,
            serverFiltering: true, 
            transport : {
                read : _OnTransportRead
            },
            schema : {
                /* object schema */
            }
        })
    });
    
    0 讨论(0)
提交回复
热议问题