Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

request for feature - input delay #51

Closed
keithpjolley opened this issue Jun 1, 2014 · 7 comments
Closed

request for feature - input delay #51

keithpjolley opened this issue Jun 1, 2014 · 7 comments

Comments

@keithpjolley
Copy link

hi vedmack,
i'm was wondering if you could incorporate something similar to: http://lab.narf.pl/jquery-typing/ into yadcf. maybe it's easy enough for me to add the previous into my script myself but it seems the most logical way of incorporating this feature would be to have a variable for each column which specifies the timeout. Default could be "0" to continue to have same behaviour as now.
thanks,
keith

@vedmack
Copy link
Owner

vedmack commented Jun 1, 2014

Hi,
You want a to do the filtering with a delay - type several chars before the filter trigger? And I'm guessing that you need it for filter_type: "text" only, right ?

@keithpjolley
Copy link
Author

yes, that's correct, but not necessarily by number of chars but by a delay
of so many milliseconds. a delay of "0" would be the same behaviour as
current, a delay of "1000" would wait 1 second after the last key-up/down
event before processing.
thanks,
keith

On Sun, Jun 1, 2014 at 9:17 AM, Daniel notifications@github.com wrote:

Hi,
You want a to do the filtering with a delay - type several chars before
the filter trigger? And I'm guessing that you need it for filter_type:
"text" only, right ?


Reply to this email directly or view it on GitHub
#51 (comment).

@vedmack
Copy link
Owner

vedmack commented Jun 1, 2014

Ok, that what I had in mind, no third part will be needed, several lines of code should do... will add something similar to "filter_delay" that will be support by filter_type: "text" only (at-least for now)

@keithpjolley
Copy link
Author

very cool! thanks!
keith

On Sun, Jun 1, 2014 at 12:13 PM, Daniel notifications@github.com wrote:

Ok, that what I had in mind, no third part will be needed, several lines
of code should do... will add something similar to "filter_delay" that will
be support by filter_type: "text" only (at-least for now)


Reply to this email directly or view it on GitHub
#51 (comment).

@vedmack
Copy link
Owner

vedmack commented Jun 3, 2014

You can grab the 0.7.4.beta.1 from https://github.com/vedmack/yadcf/blob/master/lab/jquery.dataTables.yadcf.js , I have added filter_delay property , use like this:

{column_number : 3, filter_type: "text", filter_delay: 1000}

It will wait 1000 millis' ( second after the last keyup and then do the filtering, so you can actually finish typing an entire word and only then it will fire)

@vedmack vedmack closed this as completed Jun 3, 2014
@keithpjolley
Copy link
Author

:) thanks!

On Tue, Jun 3, 2014 at 2:51 PM, Daniel notifications@github.com wrote:

Closed #51 #51.


Reply to this email directly or view it on GitHub
#51 (comment).

vedmack added a commit that referenced this issue Jun 13, 2014
vedmack added a commit that referenced this issue Jun 13, 2014
@iyilm4z
Copy link

iyilm4z commented Jul 21, 2016

hi folks, i want to delay to search search until 3 characters been typed or enter is clicked! there are many sampes without yadcf, and those work well, but same methods doesnt work with yadcf.. please help me how to do it.. thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants