Datefilter not working after new code patch.

QuestionsDatefilter not working after new code patch.
Harpreet Singh Sahota asked 5 years ago

After implementing the latest code files I'm not able to show Datepicker in the filter. Prior to that datepicker was working good. Right now, I can see datepicker in the Edit/Add popup but not in filer. Can you please suggest what could be the issue.

——————————-=Code goes like this——————–

$col = array();
$col["title"] = "Date";
$col["name"] = "event_date";
$col["formatter"] = "date";
$col["editrules"] = array("required"=>true,"date"=>true);
$col["editable"] = true; // this column is editable
$cols[] = $col;


Files Replaced:


3 Answers
Abu Ghufran answered 5 years ago


This is removed in latest build, bcoz it makes difficult to do a contains search.
If you want to do exact search, you can set:

$col["searchoptions"]["sopt"] = array("eq","gt","ge","lt","le","ne");

It will enable datepicker in autofilter.

Check your email for update.

Harpreet Singh Sahota answered 5 years ago

This code not working.

I have added the code which you mentioned above, but unfortunately it will not work.


Abu Ghufran answered 5 years ago


Kindly override jqgrid_dist.php that was emailed you.
After that, above code will work.

Here is working demo code link, override in demos/integration/datepicker.php and check in demo browser.

Your Answer

6 + 17 =

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!