The DevExpress ASP.NET Menu (ASPxMenu) control allows you to build adaptive page layouts.
The ASPxMenu control can automatically resize or hide its items when the browser window is resized. The availability of this feature is controlled by the SettingsAdaptivity.Enabled property.
Related settings:
- SettingsAdaptivity.EnableAutoHideRootItems - Moves menu root items one by one to the popup menu hidden under the ellipse button when the browser width is changed.
- SettingsAdaptivity.EnableCollapseRootItemsToIcons - Hides menu root items' text and displays only icons when the window's inner width is less than the SettingsAdaptivity.CollapseRootItemsToIconsAtWindowInnerWidth property's value.
- SettingsAdaptivity.EnableCollapseToSideMenu - Transforms the horizontal menu into the vertical side-menu when the window's inner width is less than the SettingsAdaptivity.CollapseToSideMenuAtWindowInnerWidth property's value.
In this demo, you can drag the horizontal slider and see how the ASPxMenu control adapts to different width values.
Local Copy of this Demo To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer. |
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher).
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\MVCxNavigationAndLayoutDemos |