I would like to know how to make my ui controls editable when I add a record, not when I edit a row.
I use the [editrules]=[readonly]
But when I want to add a record I can´t add information.
Setting readonly with desired column should work:
$col["editrules"]["readonly"] = true;
$col = array();
$col["title"] = "Gender";
$col["name"] = "gender";
$col["editable"] = true;
$col["editrules"] = array("required"=>true, "readonly"=>true);
$cols = $col;
Editable when add.
Readonly when edit.
Demo code: http://hastebin.com/evepirozad.php
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?