Wednesday, July 28, 2010

HoverMenu Properties

Each row of the GridView above contains a HoverMenu which is initialized with this code. The italic properties are optional:

· TargetControlID - The control that the extender is targeting. When the mouse cursor is over this control, the hover menu popup will be displayed.
· PopupControlID - The ID of the control to display when mouse is over the target control. In this case, it's just a simple panel with two links:
· · ·
·

· HoverCssClass - The CSS class to apply to the target when the hover menu popup is visible.
· PopupPostion - Where the popup should be positioned relative to the target control. Can be Left (Default), Right, Top, Bottom, Center.
· OffsetX/OffsetY - The number of pixels to offset the Popup from it's default position, as specified by PopupPosition. So if you want it to popup to the left of the target and have a 5px space between the popup and the target, the value should be "-5".
· HoverDelay - The time, in milliseconds, before the popup displays after hovering over the target control. Default is 0.
· PopDelay - The time, in milliseconds, for the popup to remain visible after the mouse moves away from the target control. Default is 100.
· Animations - Generic animations for the HoverMenu extender. See the Using Animations walkthrough and Animation Reference for more details.
· OnShow - The OnShow animation will be played each time the hover menu is displayed. The hover menu will be positioned correctly but hidden. The animation can use to display the hover menu along with any other visual effects.
· OnHide - The OnHide animation will be played each time the hover menu is hidden.

No comments:

Post a Comment