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.
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);
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.
You can edit lib/inc/jqgrid_dist.php and search/replace it.
When upgrading to newer version, you need too track such changes byself.