Back to Devexpress

DxToolbarItem.SplitDropDownButton Property

blazor-devexpress-dot-blazor-dot-dxtoolbaritem-cb0237b3.md

latest2.1 KB
Original Source

DxToolbarItem.SplitDropDownButton Property

Specifies whether an item’s drop-down button is split into two buttons.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

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

Property Value

TypeDefaultDescription
Booleanfalse

true to split an item’s drop-down button into two buttons; otherwise, false.

|

Remarks

Each Toolbar item can have child items stored in the Items collection.

You can split a parent toolbar item into two areas: the main action button and the drop-down arrow. To enable this behavior, set the SplitDropDownButton property to true.

razor
<div class="card p-2">
    <DxToolbar DropDownDisplayMode="DropDownDisplayMode.DropDown">
        <Items>
            <DxToolbarItem GroupName="align" IconCssClass="oi oi-align-left" />
            <DxToolbarItem GroupName="align" IconCssClass="oi oi-align-center" />
            <DxToolbarItem GroupName="align" IconCssClass="oi oi-align-right" />
            <DxToolbarItem Text="Format" BeginGroup="true" SplitDropDownButton="true">
                <Items>
                    <DxToolbarItem Text="Times New Roman" />
                    <DxToolbarItem Text="Tahoma" />
                    <DxToolbarItem Text="Verdana" />
                </Items>
            </DxToolbarItem>
        </Items>
    </DxToolbar>
</div>

Run Demo: Toolbar - Drop-Down Items

See Also

DxToolbarItem Class

DxToolbarItem Members

DevExpress.Blazor Namespace