DateRange picker not working on today or yesterday

QuestionsDateRange picker not working on today or yesterday
Gary asked 7 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 7 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
Grid 4 PHP Framework
 
Tammy Colley replied 7 years ago

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

Your Answer

18 + 6 =

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 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

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

Let us improve this post!

Tell us how we can improve this post?