ContextMenu Class |
Namespace: CMS.Base.Web.UI
public class ContextMenu : CMSPanel, ICallbackEventHandler
The ContextMenu type exposes the following members.
Name | Description | |
---|---|---|
ContextMenu |
Constructor
|
Name | Description | |
---|---|---|
CONTEXT_MENU_SUFFIX |
Context menu suffix.
| |
mContainerUniqueID |
Container unique ID.
| |
mContextMenuControl |
Context menu control.
| |
mHorizontalPosition |
Horizontal position.
| |
mMenuID |
Menu ID.
| |
mMouseButton |
Mouse button.
| |
mParameter |
Menu parameter.
| |
mResourcePrefix |
Prefix for the resource strings which will be used for the strings of the context menu.
| |
mShowTimeout |
Timeout to show the menu until it disappears.
| |
mVerticalPosition |
Vertical position.
|
Name | Description | |
---|---|---|
ActiveItemCssClass |
CSS class of highlighted element when context menu is opened.
| |
ActiveItemInactiveCssClass |
CSS class of highlighted element when context menu is closed.
| |
ActiveItemOffset |
Determines how many levels above the clicked element the active element is.
| |
Collapsible |
Determines whether is possible to collapse the panel by clicking its grouping text.
(Inherited from CMSPanel.) | |
ContainerUniqueID |
Container unique ID.
| |
ContextMenuControl |
Context menu control.
| |
Dynamic |
Determines whether to load the menu dynamically.
| |
FixedParentClientID |
Parent client ID to be used for fixed panels placeholders
(Inherited from CMSPanel.) | |
FixedPosition |
Indicates if panel should be always on top of a page.
(Inherited from CMSPanel.) | |
GroupingTextResourceString |
Resource string for the grouping text
(Inherited from CMSPanel.) | |
HorizontalPosition |
Horizontal position.
| |
IsCollapsed |
Initial collapsed state.
(Inherited from CMSPanel.) | |
IsLiveSite |
Indicates if control is used on live site.
(Inherited from CMSPanel.) | |
LoadingContent |
Content displayed during loading.
| |
MenuID |
Menu ID, must be unique within page context.
| |
MenuLevel |
Menu level.
| |
MouseButton |
Mouse button.
| |
OffsetX |
Offset X of the menu.
| |
OffsetY |
Offset Y of the menu.
| |
OpenUp |
If true, the menu opens in the upward direction instead down
| |
OuterCssClass |
CSS Class for the outer envelope of the menu
| |
Parameter |
Menu parameter.
| |
ParentElementClientID |
Identifier of parent element under which the context menu lies.
This parameter is optional.
| |
RenderChildrenOnly |
If true, only child controls are render to the output
(Inherited from CMSPanel.) | |
ResourcePrefix |
Prefix for the resource strings which will be used for the strings of the context menu.
Default is "general".
| |
ShortID |
Short ID of the control.
(Inherited from CMSPanel.) | |
ShowMenuOnMouseOver |
Show menu on mouse over action?
| |
ShowTimeout |
Timeout to show the menu until it disappears.
| |
VerticalPosition |
Vertical position.
|
Name | Description | |
---|---|---|
GetCallbackResult |
Returns the callback result.
| |
LoadUserControl |
Loads the specified control to the menu.
| |
OnInit |
Init event handler.
(Inherited from CMSPanel.) | |
OnPreRender |
Control PreRender event.
(Overrides CMSPanelOnPreRender(EventArgs).) | |
RaiseCallbackEvent |
Raises the callback event.
| |
Render |
Renders the control.
(Overrides CMSPanelRender(HtmlTextWriter).) |
Name | Description | |
---|---|---|
AddCssClass |
Adds CSS class to control. If class is already present, than adding is skipped. Class names are case sensitive.
(Defined by ControlsExtensions.) | |
CallHandled |
Calls the method handled by the exception handler. If the call doesn't succeed, the problem is reported through parent IExceptionHandler control instead of throwing unhandled exception for the entire page.
Returns true, if the call succeeded, otherwise returns false.
(Defined by ControlsExtensions.) | |
GetCssClasses |
Returns all CSS classes of control.
(Defined by ControlsExtensions.) | |
GetRenderedHTML |
Returns HTML which would be rendered by control to page.
(Defined by ControlsExtensions.) | |
GetString |
Gets the string by the specified resource key
(Defined by ControlsExtensions.) | |
HasCssClass |
Checks whether the control has given CSS class. Class names are case sensitive.
(Defined by ControlsExtensions.) | |
RemoveCssClass |
Removes all occurrences. Class names are case sensitive.
(Defined by ControlsExtensions.) | |
SetCssClasses |
Sets CSS classes to the control. Current classes will be overridden.
(Defined by ControlsExtensions.) |
Name | Description | |
---|---|---|
OnReloadData |
Raised when the menu requires to reload its data (for dynamic menus).
|