We used the default row filter from type=text and the filter fetch remote data after the delay of 1000
remoteFilter: true,
filterDelay: 1000
But the filter also fetch remote data if the filter text not changed!
Exsample: Click on the filter textfield and then only navigate in the filtertext, or you select part of filtertext with keyboard arrows.
I have seen in the datagrid-filter.js file, that all key events used to call the doFilter() method!
This should only done if the filter value changed or enter is pressed!
input.unbind('.filter').bind('keydown.filter', function(e){
var t = $(this);
if (this.timer){
clearTimeout(this.timer);
}
if (e.keyCode == 13){
_doFilter();
} else {
this.timer = setTimeout(function(){
_doFilter();
}, opts.filterDelay);
}
});
I think this shoud be done only when the filter value changed