Change Theme Settings
Change Theme Settings
Themes
 
Metropolis
Moderno
iOS
Material
Material Compact
Office 365
Mulberry
Show All Themes
v
...v

Client-Side Functionality

Options
Item options
v


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.