PDA

View Full Version : Enter key on Gridfilter plugin



brunocechet
18 Jun 2015, 12:06 PM
Hello,

I'm using gridfilter plugin in my grid to filter my columns values.
When you insert some query in filter and wait about 1 second, the action is triggered.
I would like to change the delay to pressing the enter key.

Is possible to do that?

Thanks

Gary Schlosberg
19 Jun 2015, 7:29 AM
Have you tried setting the updateBuffer (http://docs.sencha.com/extjs/4.2.3/#!/api/Ext.ux.grid.filter.Filter-cfg-updateBuffer)?

brunocechet
19 Jun 2015, 12:50 PM
Gary,

How can I implement it ?
I tried with differents ways, and there's no effect.
Could you makes an example?

Thank you

Gary Schlosberg
19 Jun 2015, 3:23 PM
Here's a Fiddle from the doc example, in which the delay is changed from the default half second up to 5 seconds using the updateBuffer.
https://fiddle.sencha.com/#fiddle/p45

brunocechet
22 Jun 2015, 4:05 AM
Thank you very much Gary!
Is possible to develop an override to use the enter key instead updateBuffer?