Skip to main content

DxToolbarItemBase.AdaptivePriority Property

Specifies the order in which items are hidden when the browser window is resized.

Namespace: DevExpress.Blazor.Base

Assembly: DevExpress.Blazor.v23.1.dll

NuGet Package: DevExpress.Blazor


public int AdaptivePriority { get; set; }

Property Value

Type Default Description
Int32 0

An Int32 value that specifies the item priority.


The toolbar’s layout is adaptive: when the browser window is resized, the toolbar hides its items in a drop-down menu starting from the right-most item. Use the AdaptivePriority property to specify the order in which toolbar items are hidden. Bigger AdaptivePriority property values indicate items that are hidden first.

The code below forces the Toolbar to hide its items in the following order: EditInsertDelete.

    <DxToolbarItem Text="Insert" AdaptivePriority="1"></DxToolbarItem>
    <DxToolbarItem Text="Edit" AdaptivePriority="2"></DxToolbarItem>
    <DxToolbarItem Text="Delete" AdaptivePriority="0"></DxToolbarItem>

Run Demo: Toolbar - Adaptivity

See Also