CompatibilitySettings.DisableEditorAutoGenerationInGrid Property
Specifies whether to disable automatic editor generation in DxGrid.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.1.dll
NuGet Package: DevExpress.Blazor
Declaration
public static bool DisableEditorAutoGenerationInGrid { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
|
Remarks
Since v23.1, the Grid component automatically generates editors for columns based on associated data types. Automatic editor generation is accompanied by the following Grid behavior changes:
The Grid displays automatically generated editors in edit and filter rows.
In display mode, the Grid renders Boolean column values as read-only checkboxes.
When a column associated with the Enum data type is in the default sort mode, the Grid sorts column data by display text.
In previous versions, the component does not generate editors for columns and behaves as follows:
- Displays a read-only text box in an edit row cell if the Grid’s DataColumnCellEditTemplate and the column’s CellEditTemplate are unspecified.
- Displays a text box in a filter row cell if the Grid’s DataColumnFilterRowCellTemplate and the column’s FilterRowCellTemplate are unspecified.
- Renders text strings in Boolean column cells in display mode.
- Sorts column data by values when the column is in the default sort mode.
To revert to the previous behavior, specify the DisableEditorAutoGenerationInGrid
property in the Program.cs file before you register DevExpress resources:
// ...
DevExpress.Blazor.CompatibilitySettings.DisableEditorAutoGenerationInGrid = true;
builder.Services.AddDevExpressBlazor();
// ...
app.Run();
Alternatively, you can use the CompatibilityMode property to revert to v22.2 behavior.
// ...
DevExpress.Blazor.CompatibilitySettings.CompatibilityMode = DevExpress.Blazor.CompatibilityMode.v22_2;
builder.Services.AddDevExpressBlazor();
// ...
app.Run();