Tavmant / jquery-datatables-column-filter

Automatically exported from code.google.com/p/jquery-datatables-column-filter
0 stars 0 forks source link

Filter criterion is not saved in the cooki state #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

1.  Create any table 
2.  Make a button to reload this table
3.  Run the table and enter a criteria to filter something
4.  Reload the table, see that the column filter boxes are shown empty
5.  See that the content is still filtered, filter is only removed if box is 
focused and entered any new key

Reproducible on any browser, tested on Chrome and Opera.

What is the expected output? What do you see instead?

Make it an setup option. I use the state cookie of datatables. Very nice, 
columnfilter should append to that and display correctly or not use state 
saving at all.

Original issue reported on code.google.com by martin.b...@gtempaccount.com on 8 Jun 2011 at 8:35

GoogleCodeExporter commented 8 years ago
You are right, current custom filter is not saved in the cookie, and therefore 
it is lost once the table is refreshed.
I working on it, but it is tricky because I want to use the same cookie that 
dataTables uses, and if I make any error dataTables will crach.
This feature wil be added in next version when I'm confidient that is works 
fine. 

Original comment by joc...@gmail.com on 11 Jun 2011 at 9:05

GoogleCodeExporter commented 8 years ago
When will the next version be released ?

Original comment by billy.br...@lanec.com on 29 Jun 2011 at 6:26

GoogleCodeExporter commented 8 years ago
Any ETA on this?

Original comment by jvos...@gmail.com on 15 Sep 2011 at 3:06

GoogleCodeExporter commented 8 years ago
Is the "custom filter" what is applied to the column filter (sorry for possibly 
not understanding the terminology)? DataTables saved the column filter 
information in aoPreSearchCols, so you can possibly loop over that and 
repopulate the settings from there. DataTables won't automatically set the 
values of the inputs since it knows nothing about them for individual columns - 
unlike the global filter which is does set.

Original comment by allan.ja...@gmail.com on 10 Oct 2011 at 8:40

GoogleCodeExporter commented 8 years ago
I've created imlementation for saving state in another cookie for fnCreateInput 
and fnCreateColumnSelect, see atachment:

.
Greg

Original comment by jawors...@gmail.com on 29 Nov 2011 at 4:06

Attachments:

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Hi Greg,

I used your new implementation but it didnt worked well,
i had an error like that : 

//Error
$.cookie is not a function
var cookieJson = $.cookie(cookColumnName); 

any clues?
Thanks

Original comment by clemotr...@gmail.com on 19 Dec 2011 at 12:32

GoogleCodeExporter commented 8 years ago
You need add jquery cookie plugin http://plugins.jquery.com/project/Cookie 

Original comment by jawors...@gmail.com on 11 Jan 2012 at 10:17

GoogleCodeExporter commented 8 years ago
Hi,

I have not used cookie plugin but I have created page where state is saved in 
the cookie. Could you take a look at 
http://jquery-datatables-column-filter.googlecode.com/svn/trunk/stateSave.html 
and let me does it works for you too?

Use the latest version of plugin.

Thanks,
Jovan

Original comment by joc...@gmail.com on 15 Feb 2012 at 10:40

GoogleCodeExporter commented 8 years ago
Similar issue is resolved and confirmed that it works. If similar problem still 
occurs with the latest version of plugin please raise a new issue.

Jovan

Original comment by joc...@gmail.com on 29 Feb 2012 at 6:26

GoogleCodeExporter commented 8 years ago
bStateSave works, but the checkbox filters don't maintain a checked "ticked" 
state!

Original comment by KAkkape...@gmail.com on 14 Sep 2012 at 6:22