Version

WindowStateChanged Property

Gets sets name of javascript function which is called after WindowState has changed.
Syntax
'Declaration
 
Public Property WindowStateChanged As String
public string WindowStateChanged {get; set;}
Example
// The client event WindowStateChanged takes two parameters sender and e
// sender  is the object which is raising the event
// e is the PostBackEventArgs
 
     function WDW1_WindowStateChanged(sender, e) {

         var wdw = $find("WebDialogWindow1");

         //Gets the state of WebDailogWindow
         var windowState = wdw.get_windowState();

         if (windowState == 1) {
             window.status = "WebDialogWindow Minimized";
         }
         else if (windowState == 2) {
             window.status = "WebDialogWindow Maximized";
         }
         else if (windowState == 3) {
             window.status = "WebDialogWindow Closed";
         }
         else {
             window.status = "WebDialogWindow Restored";
         }
         
         
     }
Me.WebDialogWindow1.ClientEvents.WindowStateChanged = "WDW1_WindowStateChanged"
this.WebDialogWindow1.ClientEvents.WindowStateChanged = "WDW1_WindowStateChanged";
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, 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