Several issues with afnFiltering

Several issues with afnFiltering

rkorebritsrkorebrits Posts: 8Questions: 1Answers: 0
edited September 2012 in General
Hi, I am having several issues at the moment and have been struggling for quite some time now. We have a custom "afnFiltering" function with weird behaviour and I can't figure out what's causing it.

I have placed a copy of a table here: http://korebrits.nl/test/datatables/forum.php

Features: bStateSave, afnFiltering

1. If you click on the arrow next to the filter above the column "Gemeld op" (the date column) and select "Latest 4 days" and press search, the filter works as expected and it puts "4d" in the input field. However if I type "4d" in the field myself, the filter doesnt work. This filtering works with a "$.fn.dataTableExt.afnFiltering.push" that can be found at the top of filter.js. Why is this filter only applied when I use the search button and not when I type?

2. in IE, when I set a filter on that date column, it isn't stored in a cookie. So when I reload the page, the table is loaded without that filter.

3. There is a date range filter in afnFiltering but for some reason it is not working. If I enter "02/09/2012|09/09/2012", it searched for either of the 2 entered dates, and not the range.. So it seems like the afnFiltering is not being fired upon search, but it's just doing a regular regex search.

Hope you guys can help with this.

Thanks!
This discussion has been closed.