$col = array();
$col[“title”] = “QTY”;
$col[“name”] = “qty”;
$col[“editable”] = true;
$col[“width”] = “30”;
$col[“align”] = “center”;
$col[“editrules”] = array(“required”=>false, “readonly”=>true, “readonly-when”=>”check_po”);
$col[“export”] = true;
$cols[] = $col;
function check_po(formid)
{
purchase_order = jQuery(“input[name=purchase_order]:last, select[name=purchase_order]:last”,formid).val();
if (purchase_order != 0)
{
return true
}
}
Having an issue where the columns are locked when condition happens except when clicking on the edit(inline) row button. double clicking works fine and form editing works fine…
is this a bug as it seems to be?
It looks like a bug, i will be updating you after more working.
I’m still working on it and not resolved.