Gets or sets the javascript function to invoke when a window is in creation process.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Property OnWindowCreating As String |
| C# | |
|---|
public string OnWindowCreating {get; set;} |
Example
The following codes show you how to handle OnWindowCreating event to manipulate window settings before the window is created.
| C# | Copy Code |
|---|
function WebDesktopManager1_OnWindowCreating(id, win)
{
if (win.Name == "wndContactManagement")
{
win.Size.Width = 780;
win.Size.Height = 450;
win.AllowResize = "No";
win.AllowMaximize = "No";
}
} |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also