When I use a search form even with $grid["persistsearch"] = true; I get weird errors when using the autofilter. It is like it loses that search form parameters.
For example,
1. I set a date range: https://snag.gy/icwlnE.jpg –Notice I have 1909 records.
2. I filter for a specific Truck. https://snag.gy/SHyN9F.jpg –Notice I know have 3,571 records?
The same thing happens with all other filter/search fields also.
Any thoughts?
Dave
Here are my grid options:
$grid["sortname"] = 'id'; // by default sort grid by this field
//$grid["cellEdit"] = true;
$grid["sortorder"] = "desc"; // ASC or DESC
$grid["caption"] = "Paperwork Check"; // caption of grid
$grid["autowidth"] = true; // expand grid to screen width
$grid["multiselect"] = false; // allow you to multi-select through checkboxes
$grid["rowNum"] = 30;
$grid["pgbuttons"] = true;
$grid["viewrecords"] = true;
$grid["rowList"] = array();
$grid["export"] = array("format"=>"excel", "filename"=>"TimeTable", "sheetname"=>"TripTimes");
$grid["form"]["position"] = "center";
$grid["edit_options"] = array('width'=>'500',"height"=>'500');
$grid["height"] = "690";
$grid["persistsearch"] = true;
$g->set_options($grid);