THEMES
THEME SETTINGS

Navigation and Layout - Menu Client-Side Functionality

  • Visa
  • MasterCard
  • Union
  • American Express
  • Maestro

This example demonstrates available ways to manipulate the DevExpress MVC Menu programmatically on the client using our extended client-side functionality. The client object of the Menu can be accessed on the client by its Name.

In this demo, each Menu item is identified using its Name property. In order to obtain a specific menu item by its name on the client, the GetItemByName method is used. A specific menu item can be selected using SetSelectedItem, by passing it the required item.

The MenuItemClick function that is a handler of the Menu's ItemClick client event demonstrates how to synchronize the dropdown editor's value with the name of the clicked menu item.

Version: v2017 vol 1.5
Copyright © 2006-2017 Developer Express Inc
Your Next Great MVC App Starts Here

Get started today and download your 30-day trial of DevExpress MVC Extensions (includes 30 days of free technical support).

All demos ship with full source code and are included in the DevExpress MVC distribution. Refer to the Demos and Sample Applications topic to learn more.

DevExpress MVC Extensions ship as part of DevExpress Universal, DXperience and ASP.NET Subscriptions and are backed by a 60 day unconditional money-back guarantee.
To learn more and obtain pricing information, visit the Compare Features and Pricing webpage. For immediate assistance, contact us by Email at info@devexpress.com or by phone at +1 (818) 844-3383 between 7:30am and 4:30pm Pacific Time.