Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]ASP.NET WebForms Controls
 [Expand]ASP.NET MVC Extensions
 [Expand]Localization
 [Expand]Redistribution and Deployment
  Get More Help
 [Collapse]API Reference
  [Expand]DevExpress.Data.Linq
  [Expand]DevExpress.Web
  [Expand]DevExpress.Web.ASPxGauges
  [Expand]DevExpress.Web.ASPxGauges.Base
  [Expand]DevExpress.Web.ASPxGauges.Scripts
  [Expand]DevExpress.Web.ASPxHtmlEditor
  [Expand]DevExpress.Web.ASPxHtmlEditor.Localization
  [Expand]DevExpress.Web.ASPxHtmlEditor.Scripts
  [Expand]DevExpress.Web.ASPxPivotGrid
  [Expand]DevExpress.Web.ASPxPivotGrid.Data
  [Expand]DevExpress.Web.ASPxPivotGrid.HtmlControls
  [Expand]DevExpress.Web.ASPxPivotGrid.Scripts
  [Expand]DevExpress.Web.ASPxRichEdit
  [Expand]DevExpress.Web.ASPxRichEdit.Localization
  [Expand]DevExpress.Web.ASPxRichEdit.Scripts
  [Expand]DevExpress.Web.ASPxScheduler
  [Expand]DevExpress.Web.ASPxScheduler.Commands.Dialogs
  [Expand]DevExpress.Web.ASPxScheduler.Controls
  [Expand]DevExpress.Web.ASPxScheduler.Dialogs
  [Expand]DevExpress.Web.ASPxScheduler.Drawing
  [Expand]DevExpress.Web.ASPxScheduler.Localization
  [Expand]DevExpress.Web.ASPxScheduler.Reporting
  [Expand]DevExpress.Web.ASPxScheduler.Scripts
  [Expand]DevExpress.Web.ASPxSpellChecker
  [Expand]DevExpress.Web.ASPxSpellChecker.Localization
  [Expand]DevExpress.Web.ASPxSpellChecker.Scripts
  [Expand]DevExpress.Web.ASPxSpreadsheet
  [Expand]DevExpress.Web.ASPxSpreadsheet.Localization
  [Collapse]DevExpress.Web.ASPxSpreadsheet.Scripts
   [Collapse]ASPxClientSpreadsheet Class
     ASPxClientSpreadsheet Members
     ASPxClientSpreadsheet Constructor
    [Collapse]ASPxClientSpreadsheet Events
      BeginCallback Event
      BeginSynchronization Event
      CallbackError Event
      CustomCommandExecuted Event
      DocumentChanged Event
      EndCallback Event
      EndSynchronization Event
      HyperlinkClick Event
      PopupMenuShowing Event
      SelectionChanged Event
    [Expand]ASPxClientSpreadsheet Methods
   [Expand]ASPxClientSpreadsheetCustomCommandExecutedEventArgs Class
    ASPxClientSpreadsheetCustomCommandExecutedEventHandler Delegate
   [Expand]ASPxClientSpreadsheetDocumentChangedEventArgs Class
    ASPxClientSpreadsheetDocumentChangedEventHandler Delegate
   [Expand]ASPxClientSpreadsheetHyperlinkClickEventArgs Class
    ASPxClientSpreadsheetHyperlinkClickEventHandler Delegate
   [Expand]ASPxClientSpreadsheetPopupMenuItem Class
   [Expand]ASPxClientSpreadsheetPopupMenuItemCollection Class
   [Expand]ASPxClientSpreadsheetPopupMenuShowingEventArgs Class
    ASPxClientSpreadsheetPopupMenuShowingEventHandler Delegate
    ASPxClientSpreadsheetPopupMenuType Enumeration
   [Expand]ASPxClientSpreadsheetSelection Class
   [Expand]ASPxClientSpreadsheetSelectionChangedEventArgs Class
    ASPxClientSpreadsheetSelectionChangedEventHandler Delegate
   [Expand]ASPxClientSpreadsheetSynchronizationEventArgs Class
    ASPxClientSpreadsheetSynchronizationEventHandler Delegate
  [Expand]DevExpress.Web.ASPxTreeList
  [Expand]DevExpress.Web.ASPxTreeList.Internal
  [Expand]DevExpress.Web.ASPxTreeList.Localization
  [Expand]DevExpress.Web.ASPxTreeList.Scripts
  [Expand]DevExpress.Web.Captcha
  [Expand]DevExpress.Web.Data
  [Expand]DevExpress.Web.Internal
  [Expand]DevExpress.Web.Localization
  [Expand]DevExpress.Web.Mvc
  [Expand]DevExpress.Web.Mvc.BinderSettings
  [Expand]DevExpress.Web.Mvc.Controllers
  [Expand]DevExpress.Web.MVC.Scripts
  [Expand]DevExpress.Web.Mvc.UI
  [Expand]DevExpress.Web.Office
  [Expand]DevExpress.Web.Office.Internal
  [Expand]DevExpress.Web.Rendering
  [Expand]DevExpress.Web.Scripts
  [Expand]DevExpress.XtraCharts.Web
  [Expand]DevExpress.XtraCharts.Web.Designer
  [Expand]DevExpress.XtraCharts.Web.Scripts
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

ASPxClientSpreadsheet.PopupMenuShowing Event

Occurs before the context menu is displayed and allows menu customization.

Namespace:DevExpress.Web.ASPxSpreadsheet.Scripts
Assembly:JavaScript

Expanded Syntax

Expanded Event Data

The event handler receives an argument of type ASPxClientSpreadsheetPopupMenuShowingEventArgs containing data related to this event.

The following ASPxClientSpreadsheetPopupMenuShowingEventArgs properties provide information specific to this event.
Property Description
cancel Gets or sets a value indicating whether the action which raised the event should be canceled.
menuItems Provides access to a collection of menu items in the context menu being invoked.
menuType Gets the currently displayed context menu's type.

Expanded Remarks

By handling the PopupMenuShowing client-side event, you can perform the following actions with the Spreadsheet's context menu:

See Online Demo: Context Menu Customization

Expanded Example

This sample illustrates how to prevent the context menu display for worksheet tabs and to add a custom menu item to the context menu displayed for row headings.

The context menu is dynamically processed in the PopupMenuShowing client event. The current context menu type is determined through the ASPxClientSpreadsheetPopupMenuShowingEventArgs.menuType property. A custom menu item is implemented as a new item containing a custom command name.

Clicks on the custom menu item with the custom command name are processed by using the CustomCommandExecuted client event. Within its handler, the activated custom command is identified and the corresponding action (insertion of a row with the current date and time values) is performed through a callback to the server.

Expanded See Also

How would you rate this topic?​​​​​​​