Back to Devexpress

DxToolbarItemBase.BeginGroup Property

blazor-devexpress-dot-blazor-dot-base-dot-dxtoolbaritembase.md

latest2.0 KB
Original Source

DxToolbarItemBase.BeginGroup Property

Specifies whether the item is the start of a new item group.

Namespace : DevExpress.Blazor.Base

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(false)]
[Parameter]
public bool BeginGroup { get; set; }

Property Value

TypeDefaultDescription
Booleanfalse

true if an item is the start of a new item group; otherwise, false.

|

Remarks

You can divide Toolbar items into groups. Item groups are separated by a space.

Note

The Toolbar aligns grouped items according to the group first item’s Alignment property value. Alignment property values of all other items in the group are not taken into account.

razor
<div class="card p-2">
    <DxToolbar>
        <DxToolbarItem Text="Item" />
        <DxToolbarItem Text="Link to the next demo" 
                       NavigateUrl="https://demos.devexpress.com/blazor/Toolbar#DropDown" />
        <DxToolbarItem BeginGroup="true" IconCssClass="oi oi-align-left" />
        <DxToolbarItem IconCssClass="oi oi-align-center" />
        <DxToolbarItem IconCssClass="oi oi-align-right" />
        <DxToolbarItem IconCssClass="oi oi-cog" 
                       Alignment="ToolbarItemAlignment.Right" 
                       BeginGroup="true" />
        <DxToolbarItem Text="About" IconCssClass="oi oi-info" />
    </DxToolbar>
</div>

See Also

DxToolbarItemBase Class

DxToolbarItemBase Members

DevExpress.Blazor.Base Namespace