Skip to main content

CompatibilitySettings.ReverseRightAlignedToolbarGroups Property

Specifies whether the Toolbar renders its right-aligned items in reverse order.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

public static bool ReverseRightAlignedToolbarGroups { get; set; }

Property Value

Type Description
Boolean

true to render groups in reverse order; false to render groups in direct order.

Remarks

In v22.2, right-aligned Toolbar groups appear in the order they are specified in the markup:

<DxToolbar> 
    <Items> 
        <DxToolbarItem Text="Item 1" Alignment="ToolbarItemAlignment.Right" /> 
        <DxToolbarItem Text="Item 2" Alignment="ToolbarItemAlignment.Right" /> 
        <DxToolbarItem Text="Item 3" Alignment="ToolbarItemAlignment.Right" BeginGroup="true" /> 
    </Items> 
</DxToolbar>

Direct group order

In previous versions, the Toolbar component rendered groups in reverse order:

Reverse group order

Use the ReverseRightAlignedToolbarGroups property to restore this behavior. Specify this property in the Program.cs file before you register DevExpress resources:

// ...
DevExpress.Blazor.CompatibilitySettings.ReverseRightAlignedToolbarGroups = true;
builder.Services.AddDevExpressBlazor();
// ...
app.Run();
See Also