// The client event WindowStateChanging takes two parameters sender and e // sender is the object which is raising the event // e is the WindowStateCancelEventArgs function WDW1_WindowStateChanging(sender, e) { var wdw = $find("WebDialogWindow1"); //Gets the current window state of the dialog var currentWindowState = e.get_currentWindowState(); //Gets the new window state of the dialog var newWindowState = e.get_newWindowState(); if (newWindowState == 1) { //Sets the ability to drag control by mouse to false wdw.set_moveable(0); } }
Me.WebDialogWindow1.ClientEvents.WindowStateChanging = "WDW1_WindowStateChanging"
this.WebDialogWindow1.ClientEvents.WindowStateChanging = "WDW1_WindowStateChanging";