Quantcast
Channel: DataTables 1.10 — DataTables forums
Viewing all articles
Browse latest Browse all 2366

using stateSave in conjunction with a pre-filter

$
0
0

my datatable has stateSave: true enabled.

i have set up a filter in a link from another page to easily identify a unique row in my table

"search": {"search": "<?php echo isset($_GET['filter'])?addslashes($_GET['filter']):'';?>"},

so that when my page is loaded, the datatable filter is pre-set

this works perfectly if stateSave is false, but not when it is true

is this expected behaviour ?

i think i can get around this with a bit of php by setting stateSave to true/false depending is there is a url parameter, but wondered if this was the best approach


Viewing all articles
Browse latest Browse all 2366

Trending Articles