Ng-table: Is filterDelay not working?

Created on 1 Apr 2016  ·  2Comments  ·  Source: esvit/ng-table

I added a filter to my ngTable and added a filterDelay as a filterOption. But in every case I have tons of requests, no matter of which value I choose for filterDelay (even 10000 does not help). Am I doing something wrong or is filterDelay not working properly (or is it intended for something else and I misunderstood the functionality)?

Most helpful comment

Hi @nastia2325 ! I've found a way to make it work!

When I tried to configure the tableparams, i used the following data:

filterDelay: 2000, getData: function($defer, params) {

BUT Diggin' into the ng-table repository, I have found that the right way of configuring it is:

filterOptions: { filterDelay: 2000 }, getData: function($defer, params) {

Now works like a charm! perhaps too much documentation out of date in internet... xDDD

All 2 comments

Same issue here. Using 1.0.0 version

Hi @nastia2325 ! I've found a way to make it work!

When I tried to configure the tableparams, i used the following data:

filterDelay: 2000, getData: function($defer, params) {

BUT Diggin' into the ng-table repository, I have found that the right way of configuring it is:

filterOptions: { filterDelay: 2000 }, getData: function($defer, params) {

Now works like a charm! perhaps too much documentation out of date in internet... xDDD

Was this page helpful?
0 / 5 - 0 ratings

Related issues

penchiang picture penchiang  ·  5Comments

Nagendra1402 picture Nagendra1402  ·  3Comments

ghost picture ghost  ·  30Comments

batjko picture batjko  ·  3Comments

alienriquebm picture alienriquebm  ·  6Comments