When $col[“formatter”] = “autocomplete”; is being used with $col[“editrules”] = array(“required”=>false, “readonly”=>true, “readonly-when”=>”check_po”); Read only is not working?
if I remark out $col[“formatter”] = “autocomplete”, the rules seem to work as they should. The rules work in other columns that do not use the formatter autocomplete.
//CHECK IF LOCKED
function check_po(formid)
{
var locked = jQuery(“input[name=ui_qoute_submit]:last, select[name=ui_qoute_submit]:last”,formid).val();
if (locked != 0)
{
return true
}
}
please let me know what info you may need from me.
Thanks,
Tim
1 Answers
For fix, inside lib/inc/jqgrid_dist.php, replace:
if (!empty($c["edittype"])) $tag = $c["edittype"];
With:
if (!empty($c["edittype"]) && $c["edittype"] !== "text") $tag = $c["edittype"];
Your Answer