issue with read-only when?

Questionsissue with read-only when?
Tim Moore asked 2 years ago

$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?

4 Answers
Tim Moore answered 2 years ago

sorry forgot the image link…

https://imgur.com/a/wQMcZUx

Abu Ghufran Staff answered 2 years ago

It looks like a bug, i will be updating you after more working.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Tim Moore answered 2 years ago

Any word on this?

Abu Ghufran Staff answered 2 years ago

I’m still working on it and not resolved.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

2 + 19 =

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 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?