Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82012

Save date range filtering on page reload

$
0
0
I am doing filtering based on date ranges using the example talked about here:

http://www.datatables.net/forums/discussion/313/filter-date-range/p1

This example specifically:

http://live.datatables.net/etewoq/4/edit#javascript,html

I have it working fine, but would like to save the date range using the bStateSave using the same type of idea as the way to save column filtering in oSettings as shown in this thread:

http://datatables.net/forums/discussion/2864/x#Item_3

The way I see it all I need to be able to do is store the min and max dates in the state save and reload them into the input boxes on load... If needed I can also set the minDateFilter and maxDateFilter at the time I am setting the input boxes.

Is this even possible? If so do you have a small code example that could get me going?

FWIW I currently have the date ranges working, and I also have implemented the column filtering with state saving as shown in this second example. Everything is working great, just would like to do the same thing with the date ranges.

Viewing all articles
Browse latest Browse all 82012

Trending Articles