dxFileManager
Namespace: Wisej.Web.Ext.DevExtreme
Assembly: Wisej.Web.Ext.DevExtreme (4.1.0.0)
The FileManager widget allows users to manage files and folders.
- C#
- VB.NET
public class dxFileManager : dxBase
Public Class dxFileManager
Inherits dxBase
When the options are updated after the widget has been created, the fileSystemProvider option is applied again to the client widget only when its value has changed.
Constructors
dxFileManager()
Constructs a new instance of the dxFileManager class.
Example:
The following example creates a file manager that displays an in-memory file system and allows the user to rename and delete items.
var fileManager = new dxFileManager();
fileManager.Options.fileSystemProvider = new object[]
{
new
{
name = "Documents",
isDirectory = true,
items = new[] { new { name = "Report.docx", isDirectory = false, size = 20480 } }
},
new { name = "Readme.txt", isDirectory = false, size = 1024 }
};
fileManager.Options.permissions = new { rename = true, delete = true };
fileManager.Dock = DockStyle.Fill;
this.Controls.Add(fileManager);
dxFileManager(options)
Constructs a new instance of the dxFileManager class.
| Name | Type | Description |
|---|---|---|
| options | Object | Initial set of options. |
Example:
The following example creates a read-only file manager that shows the items as thumbnails.
var fileManager = new dxFileManager(new
{
fileSystemProvider = files,
rootFolderName = "Shared files",
itemView = new { mode = "thumbnails" }
});
fileManager.Dock = DockStyle.Fill;
this.Controls.Add(fileManager);