Date Range Picker work with autofilter but not with search options

QuestionsDate Range Picker work with autofilter but not with search options
Adrian asked 2 years ago

Hi Abu,

I use "daterange" for search. This is my code:
$col["isnull"] = true;
$col["width"] = "120";
$col["formatter"] = "date";
$col["stype"] = "daterange";
$col["formatoptions"] = array("srcformat"=>'Y-m-d',"newformat"=>'d.m.Y', "opts" => array("showOn"=>"none"));
$col["align"] = "center";
$col["editrules"] = array("custom"=>true,"custom_func"=>"function(val,label){return dataValidate(val,label);}");

Work perfectly in autofilter (the result is correct), but same filter in advance search (same in simple search) does not filter at all.

Please help! Thanks!
Adrian

1 Answers
Abu Ghufran answered 2 years ago

I've updated code here: 2 required changes are highlighted
http://www.phpgrid.org/demo/demos/integrations/daterangepicker.phps#L.155-158,173-175

Your Answer

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

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

Let us improve this post!