Is it possible to make the dropdown selection box read only in the edit dialog, but work normally within the add new record dialog? I’d like my users to be able to add new records, but once added not be able to edit the drop down column. The column needs to be visible within the edit dialog but locked so it can’t be changed.
Alternatively, is it possible to show virtual columns within the edit dialog?
You can also set certain column as readonly on edit dialog, and editable on add dialog.
$col[“editrules”][“readonly”] = true;
Creating a new virtual column is also doable, and display it only on edit dialog.
Abu Ghufran - Dev Team
Grid 4 PHP Framework
Thanks. The first option worked fine, not sure how I missed that.
Ref the virtual column, I still can’t get that one to show in the edit dialog unless I set editable=true, but as soon as I do that I receive SQL errors when updating the record as the field doesn’t exist in the target table.
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?