Quantcast
Channel: Developer Express Inc.
Viewing all articles
Browse latest Browse all 2401

ASP.NET File Manager Enhancements: Context Menu, Custom Toolbar, and Custom Columns (Now available in v14.2)

$
0
0

The DevExpress ASP.NET File Manager control is getting three new features that help you deliver a great file management experience for your end-users in the current v14.2 release:

  • Custom Columns
  • Custom Toolbar and Buttons
  • Context Menu

Custom Columns

The new custom columns feature allows you to create your own unique columns for the File Manager’s Details View:

To add a custom column, use the FileManagerDetailsCustomColumn object in the File Manager’s columns collection using the new Designer.

The DetailsViewCustomColumnDisplayText event gives you the capability to provide custom column cell values. When it is raised, the Column and File event argument properties get a currently processed column and file respectively. The DisplayText property allows specifying the processed cell display text:
 
protected void FileManager_DetailsViewCustomColumnDisplayText(object source, FileManagerDetailsViewCustomColumnDisplayTextEventArgs e) {
   long fileLenghtInKiloBytes = e.File.Length / 1024;
   e.DisplayText = string.Format("File path: '{0}', File size: {1} KB", e.File.RelativeName, fileLenghtInKiloBytes);
}
 

Custom Toolbar and Buttons

You can now create customize the File Manager’s toolbar with built-in and custom buttons. To manage any of the toolbar’s buttons, use the SettingsToolbar.Items property:
 
 
When you click a custom item, the client-side CustomCommand event is raised, letting you perform custom actions. You can use the event argument's commandName parameter to identify a clicked button by its command name:
 
 
This feature will help you extend File Manager’s functionality with custom commands, which may be accessed within the File Manager toolbar:

 

Context Menu

A new Context Menu feature now allows your end-users to have more control and a better experience online:
 
 
To enable the File Manager’s Context Menu, set the SettingsContextMenu.Enabled property to true. You can add default and custom items by using the SettingsContextMenu.Items property from the new Designer:
 
 
When you click a custom item, the client-side CustomCommand event is raised, providing you with the capability to execute your own custom actions:
 
 
 
This feature extends File Manager’ functionality with custom commands and allows you to execute them within the File Manager context menu.

ASP.NET & MVC

These new features are available for both ASP.NET WebForms and ASP.NET MVC versions of the File Manager in the v14.2 release.
 
Test drive the latest v14.2 DevExpress ASP.NET File Manager demos here: Online Demos.
 

 

Your Next Great .NET App Starts Here

Year after year, .NET developers such as yourself consistently vote DevExpress products #1.

Experience the DevExpress difference for yourself and download a free 30-day trial of all our products today: DevExpress.com/trial (free support is included during your evaluation).

Viewing all articles
Browse latest Browse all 2401

Trending Articles