Hi there, I have implemented the daterange picker and copied code from your demo into my page. All works fine except selecting today or yesterday or anything custom from the (popup)calendar.
Choosing year to date, last week, last month for example works fine.
$col = array();
$col[“title”] = “Date”;
$col[“name”] = “LeadDate”;
$col[“width”] = “100”;
$col[“formatter”] = “date”;
$col[“formatoptions”] = array(“srcformat”=>’Y-m-d’,”newformat”=>’d/m/Y’);
$col[“editable”] = true; // this column is editable
$col[“editoptions”] = array(“size”=>20, “defaultValue” => date(“d-m-Y”));
// date range filter in toolbar
$col[“stype”] = “daterange”;
// Update options for date range picker: http://tamble.github.io/jquery-ui-daterangepicker/#options
$col[“searchoptions”][“opts”] = array(“initialText”=>”Lead Date”);
$col[“editrules”] = array(“required”=>true, “edithidden”=>true); // and is required
$cols[] = $col;
<!– new style dateserach–>
<script>
// add between operator for search dialog
$.jgrid.search.odata.push({oper:’bt’, text:’between’})
</script>
Hi Gary,
I am unable to generate this case in latest build and working as expected.
I’m emailing you screencast and latest build. Kindly recheck after overriding.
No that still doesnt work Abu, selecting today, yesterday or a date from calendar returns nothing..