DxToolbarItemBase.AdaptivePriority Property

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

Namespace: DevExpress.Blazor.Base

Assembly: DevExpress.Blazor.dll

Declaration

[Parameter]
[DefaultValue(0)]
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: Edit -> Insert -> Delete.

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

Online Demo: Toolbar - Adaptivity

See Also