Datefilter not working after new code patch.

QuestionsDatefilter not working after new code patch.
Harpreet Singh Sahota asked 10 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:
——————
lib/inc/autocomplete.php
lib/inc/export-selected.php
lib/inc/jqgrid_dist.php
lib/inc/persist-settings.php

Regards

3 Answers
Abu Ghufran answered 10 years ago

Hello,

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 10 years ago

This code not working.

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

Thanks
Harpeet

Abu Ghufran answered 10 years ago

Hello,

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.
http://hastebin.com/matucumesa.php

Your Answer

16 + 18 =

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?