CodeCarvings.Piczard
OnClientBeforePopupOpenFunction Property
See Also  Send Feedback
CodeCarvings.Piczard.Web Namespace > PopupPictureTrimmer Class : OnClientBeforePopupOpenFunction Property

Gets or sets the name of the client function to be called before the popup window opens.

Syntax

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.

Remarks

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:

  1. sender - A reference to the object that generated the event.
  2. 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.

Requirements

Platforms: Windows 8, Windows 7, Windows Vista, Windows XP Professional, Windows 2000 - Windows Server family: 2012, 2008.R2, 2008, 2003, 2000

See Also

©2013 Sergio Turolla. All Rights Reserved.