Back to Devexpress

MenuItem.AdaptivePriority Property

aspnet-devexpress-dot-web-dot-menuitem-811837b7.md

latest2.1 KB
Original Source

MenuItem.AdaptivePriority Property

Gets or sets the priority of item hiding in adaptive mode.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(0)]
public int AdaptivePriority { get; set; }
vb
<DefaultValue(0)>
Public Property AdaptivePriority As Integer

Property Value

TypeDefaultDescription
Int320

An Int32 value specifying the item priority.

|

Remarks

When the MenuSettingsAdaptivity.Enabled property is set to true, the ASPxMenu control can automatically resize or hide its items when the browser window is resized. Use the AdaptivePriority property to control the order of item hiding.

The bigger the value of the AdaptivePriority property is, the earlier the item will be hidden. If items have the same priority, the hiding order is determined by the MenuItem.VisibleIndex property.

The hidden items can be displayed by hovering the adaptive menu image.

See Also

Menu

Enabled

Online Demo: Menu - Responsive Layout

MenuItem Class

MenuItem Members

DevExpress.Web Namespace