javascript - How to fire an event after a kendo comboBox has finished a filter -


i need fire event after combo box finishes filter

i have extended widget , have tried chuck .done on end of call.

    search: function(word) {         word = typeof word === "string" ? word : this.text();         var = this,             length = word.length,             options = that.options,             ignorecase = options.ignorecase,             filter = options.filter,             field = options.datatextfield;          cleartimeout(that._typing);          if (length >= options.minlength) {             that._state = state_filter;             if (filter === "none") {                 that._filter(word);             } else {                 that._open = true;                 that._filtersource({                     value: ignorecase ? word.tolowercase() : word,                     field: field,                     operator: filter,                     ignorecase: ignorecase                 }); // .done here not work :(             }         }     }, 

i need know when value returned can other stuff on page once know input matches value server side.

can think of way achieve this? :)

is there way fire event once datasource has changed?

i solved issue using _busy state on widget. following code in select function on widget whenever losses focus fires.

if widget not busy have finished ajax call. hope usefull :)

    if (data && data.length != 0)      {         (var = 0; < data.length; i++)          {             li = $(that.ul).find('li:nth-child(' + (i + 1) + ')');             if (li.length != 0 && data[i].productcode == that.input.val())              {                 that._select(li);                 return;             }         }     }     if (that._busy && that._busy != null)     {         that.busycheck = setinterval(function () {             if (!that._busy || that._busy == null) {                 clearinterval(that.busycheck);                 if (data && data.length != 0){                     (var = 0; < data.length; i++){                         li = $(that.ul).find('li:nth-child(' + (i + 1) + ')');                         if (li.length != 0 && data[i].productcode == that.input.val()){                             that._select(li);                             return;                         }                     }                 }             }         }, 50);     }      that._addcodeisservervalid(false); 

Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -