Hello Abu,
I have a field that I want to show on the grid, but not allow the user to edit the field. When they perform an add, then they must enter a value for the field.
What are the proper values to use to get this condition?
Regards,
Davor
I am emailing you sample code.
Usage will be like …
$col["show"] = array("list"=>true, "add"=>true, "edit"=>false, "view"=>true);
$cols[] = $col;
This works great except if we allow "in line" edit. Then the field remains editable.
Regards,
Davor
That's great. Just to help other i am posting the solution.
You can make it read only when shown on grid inline edit by following setting.
$col["editrules"] = array("required"=>true, "readonly"=>true);
I have the exact same issue. I have tried the code in this post, but the field that I want to be editable in the inline add is still read only.