Version

Hide the Dialog Window

By default, the WebDialogWindow™ control’s dialog window is visible. If you’re using the dialog window as a prompt, or dialog box requiring user interaction, you may not want it visible all the time, but only when necessary. Therefore, you’ll want to hide the dialog window either in the properties window during design time, or in the page’s Load event at run time. Hiding the dialog window is as simple as setting the Visible property to False. Once you are ready to accept the end user’s input, through a button click or some other event, you can show the dialog window by setting the Visible property back to True.

The following code demonstrates how to hide WebDialogWindow’s dialog window.

In Visual Basic:

' Hide the dialog window.
Me.WebDialogWindow1.WindowState = _
        Infragistics.Web.UI.LayoutControls.DialogWindowState.Hidden

In C#:

// Hide the dialog window.
this.WebDialogWindow1.WindowState =
        Infragistics.Web.UI.LayoutControls.DialogWindowState.Hidden;