Hello,
If you set field readonly by the following setting, it does not show datepicker.
$col["editrules"] = array("readonly"=>true);
If you have used any other way to make readonly, you can goto jqgrid_dist.php and search
jQuery(el).datepicker
and apply some IF condition for readonly field.
can the datpicker popup be:
1)deactivated on clicking the field
2)activated on clicking icon
🙂
Edit jqgrid_dist.php in lib/inc and remove .click() binding.
Search and remove following.
.click(function(e){jQuery(el).datepicker('show')
.click(function(e){jQuery(el).datetimepicker('show')
i tried but i need the opposite.
I need to HIDE calendar when clicking FIELD.
KEEP calendar when clicking ICON.
Revert last advice, add following:
$col["formatoptions"] = array("srcformat"=>'Y-m-d',"newformat"=>'Y-m-d', "opts" => array("changeYear" => false,"showOn"=>"none"));
"showOn"=>"none"