Show theme settings Shopping cart Download trialFree Trial
Change Theme Settings
Change Theme Settings
Show All Themes

Custom Popup Menu

Page 1 of 9 (85 items)Prev123456789Next
Drop Filter Fields Here
Page 1 of 9 (85 items)Prev123456789Next

This demo shows how to add a new menu item to the Field Value popup menu. The "Filter By This Value" menu item allows you to filter the corresponding field by the value currently being clicked.

The ASPxPivotGrid provides two popup menus. The first menu is shown when an end-user right clicks a field value. The second menu is shown when an end-user right clicks a field header or right clicks within the empty area.

Custom menu items can be created and added to the pivot grid's popup menus within the PopupMenuCreated event handler. To add a new menu item, use the MenuItemCollection.Add method. The event parameter provides the MenuType property, which identifies the menu currently being displayed. The popup menu, itself, is returned by the Menu property.

To define an action, which is executed after an end-user has clicked a custom menu item, handle the client-side PopupMenuItemClick event.

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).
Open CS Solution
Open VB Solution
The source code files for this demo are installed (by default) in the following directories:
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\ASPxPivotGridDemos
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\VB\ASPxPivotGridDemos