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.2.dll

NuGet Package: DevExpress.Blazor

Declaration

[DefaultValue(0)]
[Parameter]
public int AdaptivePriority { get; set; }

Property Value

Type Default Description
Int32 0

An Int32 value that specifies the item priority.

Remarks

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.

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

Run Demo: Toolbar - Adaptivity

See Also