Visual Basic (Declaration) | |
---|---|
Public Property OnClientBeforePopupOpenFunction As String |
C# | |
---|---|
public string OnClientBeforePopupOpenFunction {get; set;} |
Return Value
The name of the client function to be called before the popup window opens.The default value is an empty string, which indicates the control do not call any function.
Please see:
- PopupPictureTrimmer - Client-side events (paragraph: "The ControlLoad event OnClientBeforePopupOpenFunction")
- The example A.323 - "PopupPictureTrimmer - Client side events"
- The example A.405 - "Enrich the PopupPictureTrimmer window"
The function receives 2 parameters:
- sender - A reference to the object that generated the event.
- args - An object containing additional information about the event.
In particular the args object provides the following properties:- args.windowWidth
Gets or sets the width of the popup. - args.windowHeight
Gets or sets the height of the popup. - args.reservedWindowHeight
Gets or sets the height of the popup window reserved for additional custom UI elements (pixels); the default value is 0 - args.additionalTopElements
Gets or sets an array of DOM elements to be added on the top of the popup window - args.additionalBottomElements
Gets or sets an array of DOM elements to be added on the bottom of the popup window - args.lightBoxCssClass
Gets or sets the CSS class of the popup. - args.freezeOtherPictureTrimmerControls
Gets or sets a value indicating whether to freeze other PictureTrimmer controls.
The default value is true. - args.goOn
If you set this value to false then the popup will NOT open.
- args.windowWidth
Requirements
Platforms: Windows 8, Windows 7, Windows Vista, Windows XP Professional, Windows 2000 - Windows Server family: 2012, 2008.R2, 2008, 2003, 2000