Back to Devexpress

DxToolbarItemBase.AdaptivePriority Property

blazor-devexpress-dot-blazor-dot-base-dot-dxtoolbaritembase-38f286a8.md

latest1.8 KB
Original Source

DxToolbarItemBase.AdaptivePriority Property

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

Declaration

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

Property Value

TypeDefaultDescription
Int320

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 following code snippet forces the Toolbar to hide its items in the following order: EditInsertDelete.

razor
<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

AdaptiveText

DxToolbarItemBase Class

DxToolbarItemBase Members

DevExpress.Blazor.Base Namespace