CompatibilitySettings.UseDropDownInGridColumnChooser Property
Specifies whether the DxGrid component renders the Column Chooser as a window or drop-down component.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.2.dll
NuGet Package: DevExpress.Blazor
Declaration
public static bool UseDropDownInGridColumnChooser { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
|
Remarks
In v23.1, the DxGrid component renders the Column Chooser as a draggable/resizable window. You can customize this window.
In previous versions, the Column Chooser is a drop-down window. It can be connected to a button or toolbar item and has no customization options. Use the UseDropDownInGridColumnChooser
property to restore this behavior. Specify this property in the Program.cs file before you register DevExpress resources:
// ...
DevExpress.Blazor.CompatibilitySettings.UseDropDownInGridColumnChooser = true;
builder.Services.AddDevExpressBlazor();
// ...
app.Run();
Alternatively, you can use the CompatibilityMode property to maintain component behavior from v22.2.
// ...
DevExpress.Blazor.CompatibilitySettings.CompatibilityMode = DevExpress.Blazor.CompatibilityMode.v22_2;
builder.Services.AddDevExpressBlazor();
// ...
app.Run();