blazor-devexpress-dot-blazor-dot-base-dot-dxtoolbaritembase-38f286a8.md
Specifies the order in which items are hidden when the browser window is resized.
Namespace : DevExpress.Blazor.Base
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[DefaultValue(0)]
[Parameter]
public int AdaptivePriority { get; set; }
| 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 following code snippet 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>
Run Demo: Toolbar - Adaptivity
See Also