DxEditSettings.Enabled Property
Specifies whether an editor is enabled.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.2.dll
NuGet Package: DevExpress.Blazor
Declaration
[DefaultValue(true)]
[Parameter]
public bool Enabled { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Boolean | true |
|
Remarks
When the Enabled
property is set to false
, the editor does not respond to user interactions and users cannot change the editor’s value. In this mode, the editor cannot be focused or navigated.
Note that the Enabled
property does not affect the editor displayed in the filter row. To hide the filter row editor, set the FilterRowEditorVisible
property to false
.
<DxGrid Data="@products" PageSize="4"
EditMode="GridEditMode.EditRow">
<Columns>
<DxGridCommandColumn />
<DxGridDataColumn FieldName="ProductID" DisplayFormat="00000">
<EditSettings>
<DxSpinEditSettings Enabled="false" />
</EditSettings>
</DxGridDataColumn>
<DxGridDataColumn FieldName="ProductName" />
<DxGridDataColumn FieldName="UnitPrice" DisplayFormat="c" />
<DxGridDataColumn FieldName="UnitsInOrder" />
</Columns>
</DxGrid>
To disable or enable an editor at runtime, use the IEditSettings.Enabled property instead.
Implements
See Also