DateRange picker not working on today or yesterday

QuestionsDateRange picker not working on today or yesterday
Gary asked 2 years ago

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>

1 Answers
Abu Ghufran Staff answered 2 years ago

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.

_________________________
Abu Ghufran - Dev Team
PHP Grid Framework
 
Tammy Colley replied 1 year ago

No that still doesnt work Abu, selecting today, yesterday or a date from calendar returns nothing..

Your Answer

13 + 9 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating / 5. Vote count:

We are sorry that this post was not useful for you!

Let us improve this post!