I want to make a column Readonly at the time of Add / GridAdd.
How can i do that ?
Readonly - GridAdd / Add
-
- User
- Posts: 361
Readonly - GridAdd / Add
-
- User
- Posts: 11905
For Grid-Add mode, then you may put the following code in Page_Load server event that belongs to the List Page, for example, from demo2024 project, you want to disable CompanyName field:
if ($this->CurrentAction == "gridadd") {
$this->CompanyName->ReadOnly = true;
}
For single Add Page, then you may simply put the following code in Page_Load server event that belongs to the Add Page:
$this->CompanyName->ReadOnly = true;