FileDialog
Wisej.Web.FileDialog
Last updated
Wisej.Web.FileDialog
Last updated
Namespace: Wisej.Web
Assembly: Wisej.Framework (2.5.0.0)
Displays a dialog box from which the user can select a file.
This class is abstract. The current implementations in Wisej are and . You can override this class or and to add your own custom behavior and localization. You can:
Override . It's called when the specified file doesn't exist and the property is true.
Override to create your custom when the method is called.
Set the to a class that has a constructor that accepts as the single argument to change the User Interface (UI) of the file dialog.
Override to provide your custom implementation of the actions to execute when the user presses the OK button.
You must add at least one to the collection before showing the dialog.
Initializes a new instance of .
Resets all properties to their default values.
Initializes a new instance of using the initial roots .
Name | Type | Description |
---|
Initializes a new instance of the extender with a specified container.
Name | Type | Description |
---|
: Returns or sets whether the dialog box automatically adds an extension to a file name if the user omits the extension.
: Returns or sets whether the dialog box displays a warning if the user specifies a file name that does not exist.
: Returns or sets the default file name extension.
: Returns or sets a string containing the file name selected in the file dialog box.
: Returns the file names of all selected files in the dialog box.
: Returns the that contains the selected .
: Returns or sets the current file name filter string, which determines the choices that appear in the "Save as file type" or "Files of type" box in the dialog box.
: Returns or sets the index of the filter currently selected in the file dialog box.
: Returns or sets the initial directory displayed by the file dialog box.
: List of root file systems displayed by the FileDialog.
The Roots collection and the implementations allow the application to use arbitrary names mapped to a specific path. For example, the app may add a root object named "Documents" to "c:\users[logged-user-id]\files\documents". Each user will see "Documents" as the root, but will also see only the files in the [logged-user-id] directory.
: Returns or sets whether the Help button is displayed in the file dialog box.
: Returns or sets the file dialog box title.
Returns the that contains the specified path .
Parameter | Type | Description |
---|
Returns: . The that contains the specified path or null if not found.
Maps the virtual path to the corresponding physical path on the specific implementation.
Parameter | Type | Description |
---|
Returns: . The physical path for the implementation.
Receives the file names selected by the user and validates them according to the properties set in the instance.
Parameter | Type | Description |
---|
Returns: . True if the files have been validated and the dialog can close; otherwise false to keep the dialog open.
Fired when the user clicks on the Open or Save button on a file dialog box.
Fired when the file dialog is loading a file or folder.
Name | Description |
---|
roots |
container |
path |
filePath | Virtual path to map to the corresponding physical path. |
fileNames | Array containing the selected file paths. |
Prompts the user to open a file from the server. |
Prompts the user to select a location for saving a file on the server. |
Initial file systems to load in the .
An that represents the container of the component.
Full path of the file to locate in on of the .