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
 [Collapse]ASP.NET WebForms Controls
  [Expand]Reporting
  [Expand]Chart Control
  [Expand]Grid View
  [Expand]Card View
  [Expand]Vertical Grid
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Image and Data Browsing
  [Expand]Docking and Popups
  [Expand]Site Navigation and Layout
  [Collapse]File Management
   [Expand]Product Information
   [Collapse]File Manager
     ASPxFileManager Overview
    [Collapse]Concepts
      Thumbnails
      View Modes
      Custom Columns
      Toolbar
      Uploading Files
      File Download
      Context Menu
     [Expand]Access Control Overview
     [Expand]File System Providers
      Security Considerations
    [Expand]Visual Elements
    [Expand]Member Tables
    [Expand]Examples
   [Expand]File Upload
  [Expand]Multi-Use Site Controls
  [Expand]Scheduler
  [Expand]HTML Editor
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Gauges
  [Expand]Data Editors
  [Expand]Spell Checker
  [Expand]Query Builder
 [Expand]ASP.NET MVC Extensions
 [Expand]Localization
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[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

Context Menu

The ASPxFileManager context menu is a popup menu displayed when an end-user right-clicks a file manager element. To enable the context menu, use the FileManagerSettingsContextMenu.Enabled property.

The FileManagerSettingsContextMenu.Items property allows populating the collection of menu items with default and custom items. If the item collection is empty, default items are displayed.

When a file manager updates its context menu, the ASPxClientFileManager.ToolbarUpdating event is raised, allowing you to change item availability. You can determine the currently active area using the event argument's ASPxClientFileManagerToolbarUpdatingEventArgs.activeAreaName property. To access a particular context menu item, use the ASPxClientFileManager.GetContextMenuItemByCommandName method.

Expanded Example

The complete sample is available in the DevExpress online demo File Manager - Custom Toolbar

Expanded See Also

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