I suggest you ...

Page-Reload-Persistent Search

It would be nice if there would be an option to make search/sort reload persistent ...
We got several Systems where the Users switch between different Lists / Pages ... and they have to execute the same searches again & again & again when going back and forth...

So it would be really cool if the Search could be Page Reload Persistent ... ;-)

thx
Andreas Schnederle-Wagner

40 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Futureweb OG shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    4 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...
      • Mario K. commented  ·   ·  Flag as inappropriate

        That would really be a great Feature - are there any Plans to integrate such a functionality?

      • Christian Porath commented  ·   ·  Flag as inappropriate

        I found a way to solve this using a session variable, but only for sortings and pagesize settings.

        first step: include in <phpgrid_dir>/data.php on row 33

        $getGridSettings=array('rows','sidx','sord');
        foreach($getGridSettings as $setItem)
        if(isset($_GET[$setItem]) && $_GET[$setItem])
        $_SESSION['grid'][$setItem]=$_GET[$setItem];

        second step: use this in your object methods like

        $defaultPageSize=500; // value for default
        if(isset($_SESSION['grid']['sidx']) && isset($_SESSION['grid']['sord']))
        $dg->set_sortname($_SESSION['grid']['sidx'],strtoupper($_SESSION['grid']['sord']));
        if(isset($_SESSION['grid']['rows']))
        $dg->set_pagesize($_SESSION['grid']['rows']);
        else
        $dg->set_pagesize($defaultPageSize);

      Feedback and Knowledge Base