EasyUI Forum
April 20, 2024, 02:12:23 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: DataGrid Filter Row Extension automatic filter problem  (Read 8807 times)
cjytxwd
Newbie
*
Posts: 5


View Profile Email
« on: April 29, 2018, 09:47:17 PM »

I'm using DataGrid Filter Row Extension in my datagrid,  I notice the filterDelay Property determines the delay time to do filter automatically when the filter type is 'text', It's powerful and convenient, but How can I disable the automatic filter function? I try to set filterDelay to 0 but it just does filter immediately.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: April 30, 2018, 05:56:49 PM »

Please download the newer 'datagrid-filter.js' file from https://www.jeasyui.com/extension/datagrid_filter.php. Set the 'filterDelay' to 0 to disable the default filtering action.
Logged
cjytxwd
Newbie
*
Posts: 5


View Profile Email
« Reply #2 on: April 30, 2018, 06:34:26 PM »

Thanks!
Logged
fgendorf
Newbie
*
Posts: 24


View Profile Email
« Reply #3 on: December 12, 2018, 11:57:09 AM »

Hi, setting filterDelay to 0 in the latest version not disabled the automatic filter in text fields.
I saw in datagrid-filter.js the follow code:

Code:
else if (opts.filterDelay){
this.timer = setTimeout(function(){
_doFilter();
}, opts.filterDelay);}



so filterDelay = 0 the setTimeOut is immediately....

Where can I get the latest version to disable automatic filter?

Thanks for advance
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #4 on: December 12, 2018, 06:45:04 PM »

This code does not execute when the 'filterDelay' is set to 0.
Logged
fgendorf
Newbie
*
Posts: 24


View Profile Email
« Reply #5 on: December 13, 2018, 02:45:07 AM »

This code does not execute when the 'filterDelay' is set to 0.

Thanks for you answer, I downloaded the latest source of datagrid-filter.js and the automatic filter continues executing with filterDelay = 0.
Looking on source a didn't found any condition related this, are you sure?

Thank you

 
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #6 on: December 13, 2018, 04:57:47 PM »

This is the example http://code.reloado.com/obexur/edit#preview
The filtering action does not execute until you press the ENTER on the filtering box.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!