Hi Abu!
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.
1 Answers
Setting readonly with desired column should work:
$col["editrules"]["readonly"] = true;
e.g.
$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
Your Answer