ComboBox hits server twice, first time with null parameter

2 posts, 0 answers
  1. Josh
    Josh avatar
    4 posts
    Member since:
    Feb 2014

    Posted 07 Mar 2014 Link to this post

    For some reason my kendoComboBox, with server side filtering, is hitting my MVC controller twice, the first time with no data. Any idea why this is happening? 

    Also another note, I do not need all the fancy filter criteria that is sent by kendo, I send a term, and perform an OR search across address fields. 

    dataSource: addressDS,
    dataTextField: "NAME",
    dataValueField: "ID"

    var addressDS = new{
            schema: {
                model: {
                    id: "ID",
                    fields: {
                        ID: {type: "number"},
                        NAME: {type: "string"},
                        ADDRESS1: {type: "string"},
                        CITY: {type: "string"},
                        STATE: {type: "string"},
                        ZIP: {type: "string"},
                        COUNTRY: {type: "string"},
                data: function(data) {
                    return data.Results;
                total: function(data) {
                    return data.ResultCount;
            transport: {
                read: {
                    type: 'json',
                    url: '/Address/Autocomplete'
                parameterMap: function(data, type) {
                    return {
                        term: $('#ELEMENT').val()
            serverFiltering: true
  2. Georgi Krustev
    Georgi Krustev avatar
    3688 posts

    Posted 10 Mar 2014 Link to this post

    Hello Josh,

    Generally speaking, the combobox will make a request on load in order to retrieve the corresponding data.
    If you need to avoid initial binding then you can set the autoBind option to false. If I am missing something, then I would like to ask you to send us a simple jsBin/jsFiddle demo  which reproduces the issue.

    Georgi Krustev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top