Dynamic cell editing

QuestionsDynamic cell editing
Buffy asked 10 years ago

Hello,

from demo:

$col["editrules"] = array("required"=>true, "readonly"=>true, "readonly-when"=>array("==","male"));

i d like to use readonly , when lenght of id cell is 13 for exemple

something like "readonly-when"=>array("id.lenght","==","13");

possible ?

Thank you and good work!

1 Answers
Abu Ghufran answered 10 years ago

You can have something like "readonly-when"=>array("field","==","13");
So alternate way for your case would be to select a new field e.g.

select a,b,c,len(id) as d from table … and when field 'd' in readonly-when condition.

You may also need latest build for this case. Email me with orderno / payment email address for update.

Your Answer

6 + 15 =

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?