Skip to main content

FileManager

Namespace: Wisej.Web.Ext.Syncfusion2

Assembly: Wisej.Web.Ext.Syncfusion2 (4.1.0.0)

The File Manager component is used to explore a file system through a web application, similar to the windows explorer for windows. It supports the basic file operations such as create, rename, delete.

public class FileManager : ej2Base

The file operations are performed by the file service specified in the ajaxSettings option, which must be provided by the application. The height option is always set by the control to fill its client area, and changing the view option recreates the widget in the browser.

Constructors​

Instance member FileManager()​

Constructs a new instance of the FileManager class.

Example:

The following example creates a file manager and connects it to a file service of the application through the Options object.

var fileManager = new FileManager();
fileManager.Options.view = "Details";
fileManager.Options.ajaxSettings = new { url = "/api/FileManager/FileOperations" };
fileManager.Dock = DockStyle.Fill;
this.Controls.Add(fileManager);

Instance member FileManager(options)​

Constructs a new instance of the FileManager class.

NameTypeDescription
optionsObjectInitial set of options.

Example:

The following example creates a file manager that shows large icons and specifies the URLs of the file service of the application used to browse, preview, upload and download the files.

var fileManager = new FileManager(new
{
view = "LargeIcons",
allowMultiSelection = false,
ajaxSettings = new
{
url = "/api/FileManager/FileOperations",
getImageUrl = "/api/FileManager/GetImage",
uploadUrl = "/api/FileManager/Upload",
downloadUrl = "/api/FileManager/Download"
}
});
fileManager.Dock = DockStyle.Fill;
this.Controls.Add(fileManager);

Implements​