Datepicker/Calendar problem form

QuestionsDatepicker/Calendar problem form
Hafiz asked 9 months ago

Hello Abu,

I have this datepicker at many of my page. The problem is when i use autocomplete formatter, then click the autocomplete text, the calendar popup. It’s really annoying for my client to use it tho. Can I know how to slove this kind of problem? Here is my segment of code.

$col = array();
$col[“title”] = “Date”;
$col[“name”] = “date”;
$col[“width”] = “70”;
$col[“formatter”] = “date”;
$col[“formatoptions”] = array(“srcformat”=>’Y-m-d’,”newformat”=>’d.m.Y’);
$col[“editable”] = true;
$col[“editoptions”] = array(“defaultValue” => date(“d.m.Y”));
$cols[] = $col;

$col = array();
$col[“title”] = “Size”;
$col[“name”] = “lw_dia”;
$col[“width”] = “50”;
$col[“search”] = true;
$col[“editable”] = true;
$col[“formatter”] = “autocomplete”;
$col[“formatoptions”] = array(“sql”=>”select distinct size as k, size as v from materials ORDER BY size”,
“search_on”=>”size”);
$cols[] = $col;

When I click the autocomplete size, the datepicker pops out of nowhere.

Please help.

4 Answers
Abu Ghufran Staff answered 9 months ago

modal should be false, if you are using more than 1 datepicker/timepicker/autocomplete controls

$opt[“add_options”][“modal”] = false;
$opt[“edit_options”][“modal”] = false;

$g->set_options($opt);

_________________________
Abu Ghufran - Dev Team
PHP Grid Framework
 
Hafiz answered 9 months ago

Hello Abu,

Thanks for the help. May I know is there any way to make the modal = false by default? Its like most of my page is using more than 1 datepicker/autocomplete.

Abu Ghufran Staff answered 9 months ago

You can edit lib/inc/jqgrid_dist.php and search/replace it.

When upgrading to newer version, you need too track such changes byself.

_________________________
Abu Ghufran - Dev Team
PHP Grid Framework
 
Hafiz answered 9 months ago

Okay.

Really thanks for the help.

Your Answer

3 + 5 =

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!