Skip to main content
Version: 3.5

CommonDialog

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Specifies the base class used for displaying dialog boxes on the screen.

public class CommonDialog : Component

Constructors

Instance memberCommonDialog()

Initializes a new instance of CommonDialog.

Instance memberCommonDialog(container)

Initializes a new instance of the CommonDialog extender with a specified container.

NameTypeDescription
containerIContainerAn IContainer that represents the container of the CommonDialog component.

Properties

Instance memberDialogTemplate

Type: Returns or sets the type of the common dialog UI control to show when calling the ShowDialog method. (Default: null)

Instance memberTag

Object: Returns or sets an object that contains data about the control. (Default: null)

Instance memberTitle

String: Returns or sets the dialog box title. (Default: "")

Instance memberWindowState

FormWindowState: Returns or sets the initial WindowState of the common dialog. (Default: Normal)

Methods

Instance memberReset()

When overridden in a derived class, resets the properties of a common dialog box to their default values.

Instance memberShowDialog()

Runs a common dialog box with a default owner.

Returns: DialogResult. OK if the user clicks OK in the dialog box; otherwise, Cancel.

Instance memberShowDialog(onclose)

Runs a common dialog box with a default owner.

ParameterTypeDescription
onclose optionalAction<DialogResult>Optional async handler for the close event; called when the form/dialog has been closed. It's the equivalent of handling the event. When the onclose event handler is specified, the modal dialog doesn't suspend the execution on the server but it's still shown as a modal dialog on the client.

Returns: DialogResult. OK if the user clicks OK in the dialog box; otherwise, Cancel.

Instance memberShowDialog(owner)

Runs a common dialog box with the specified owner.

ParameterTypeDescription
ownerFormA Form that represents the top-level window that owns the modal dialog box. It can be null.

Returns: DialogResult. OK if the user clicks OK in the dialog box; otherwise, Cancel.

Instance memberShowDialog(owner, onclose)

Runs a common dialog box with the specified owner.

ParameterTypeDescription
ownerFormA Form that represents the top-level window that owns the modal dialog box. It can be null.
onclose optionalAction<DialogResult>Optional async handler for the close event; called when the form/dialog has been closed. It's the equivalent of handling the event. When the onclose event handler is specified, the modal dialog doesn't suspend the execution on the server but it's still shown as a modal dialog on the client.

Returns: DialogResult. OK if the user clicks OK in the dialog box; otherwise, Cancel.

Instance memberShowDialogAsync(owner)

Runs a common dialog box with the specified owner asynchronously.

ParameterTypeDescription
owner optionalFormA Form that represents the top-level window that owns the modal dialog box. It can be null.

Returns: Task<DialogResult>. OK if the user clicks OK in the dialog box; otherwise, Cancel.

Events

Instance memberHelpRequested

EventHandler Fired when the user clicks the Help button on a common dialog box.

Inherited By

NameDescription
ColorDialogRepresents a common dialog box that displays available colors along with controls that enable the user to define custom colors.
FileDialogDisplays a dialog box from which the user can select a file.
FolderBrowserDialogAllows the user to select a folder from one of the Roots.
OpenFileDialogPrompts the user to open a file from the server.
SaveFileDialogPrompts the user to select a location for saving a file on the server.