THEMES
THEME SETTINGS

File Manager and File Upload - File Manager Custom Toolbar

  • Refresh
  • Thumbnails View
  • Details View
  • Collapse
    FolderFiles
    • Expand
      FolderDocuments
      • Expand
        FolderProjects
        • FolderTest project
        • FolderXml list
      • FolderReports
    • Expand
      FolderImages
      • FolderEmployees
      • FolderProduct icons
    • FolderMusic
    • FolderSystem
    • FolderVideo

This demo illustrates how to extend the DevExpress ASP.NET MVC File Manager extension with custom toolbar and context menu items.

In addition to default buttons available within File Manager, you can integrate custom items and display them in a toolbar or in a context menu. To add custom items, use the SettingsToolbar.Items and SettingsContextMenu.Items collections. Custom items can be implemented by the FileManagerToolbarCustomButton or FileManagerToolbarCustomDropDownButton object and are identified using its CommandName property.

When a custom item is clicked, the CustomCommand client event is raised. Its commandName event argument property allows you to identify the clicked item. The ToolbarUpdating event is raised every time the toolbar requires an update and allows you to control item visibility and availability.

In this demo, the toolbar is populated with three custom items, and a context menu is populated with a custom item. The CustomCommand event is used to perform a callback to the server side (PerformCallback). On the server side, the file manager changes the file area view (SettingsFileList.View) or displays the selected item property, based in the sent event parameter (Parameter).

The ToolbarUpdating event is used to control the Property item availability within the toolbar and the context menu, based on the current active area (activeAreaName) and the selected item (GetSelectedItems).

Version: v2017 vol 1.7
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.