IModelDetailView.FreezeLayout Property
Specifies whether the automatic update of the Detail View layout is disabled.
Namespace: DevExpress.ExpressApp.Model
Assembly: DevExpress.ExpressApp.v24.2.dll
NuGet Package: DevExpress.ExpressApp
#Declaration
#Property Value
Type | Description |
---|---|
Boolean |
|
#Remarks
By default, the Detail View layout is updated automatically in the following cases:
- when you make changes in the business model (for example, add a new property to the business class);
- when you modify the same Detail View layout at a lower Application Model layer (for example, you modify layout in the MySolution\Module project and the layout is automatically updated in the MySolution\Blazor.Server, MySolution\Win, and MySolution\Web projects).
Set the FreezeLayout
property to true
to prohibit automatic updates of the layout. In this instance, only manual modifications will be allowed.
Note
The Freeze
property is not available for nodes that you have added or cloned at the current Application Model layer. Layout of these nodes is never updated automatically.
When you set the FreezeLayout
property to true
, the Model Editor copies the current state of the layout to the model differences. As a result, any changes from lower layers (e.g., default layout generation) are overridden. When you revert the FreezeLayout
back to false
, Model Editor resets differences - all current layout customizations are removed.
Note
After manually customizing the layout of a business class View, you must set the Freeze