Version

Resized Property (DialogWindowClientEvents)

Gets sets name of javascript function which is called after control was resized.
Syntax
'Declaration
 
Public Property Resized As String
public string Resized {get; set;}
Example
// The client event Resized takes two parameters sender and e
// sender  is the object which is raising the event
// e is the ResizeEventArgs

function WDW1_Resized(sender, e) {

    var wdw = $find("WebDialogWindow1");

    //Gets reference to resizer if resizing is enabled
    var resizer = wdw.get_resizer();

    //Gets old height
    var oldHeight = e.get_oldHeight();

    //Gets old width
    var oldWidth = e.get_oldWidth();

    //Gets new height
    var newHeight = e.get_height();

    //Gets new width
    var newWidth = e.get_width();

    //Sets tooltip for handle element
    var toolTip = resizer.set_toolTip("New height and width : " + newHeight + " , " + newWidth);

   }
Me.WebDialogWindow1.ClientEvents.Resized = "WDW1_Resized"
this.WebDialogWindow1.ClientEvents.Resized = "WDW1_Resized";
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