ContextMenu
Wisej.Web.ContextMenu
Last updated
Was this helpful?
Wisej.Web.ContextMenu
Last updated
Was this helpful?
Namespace: Wisej.Web
Assembly: Wisej.Framework (2.5.0.0)
Represents a context menu associated to a .
Initializes a new instance of the class with no menu items specified.
Initializes a new instance of the class with a specified set of objects.
menuItems
Displays the context menu at the specified position in relation to the specified component.
component
Can be any Wisej visual component: i.e. tool button, column header, etc.
position
onclose
Displays the context menu at the specified position.
pos
onclose
Displays the context menu at the specified position in relation to the specified control.
control
position
onclose
Throws:
Displays the context menu at the specified position in relation to the specified control.
control
pos
onclose
Throws:
Displays the context menu at the specified position and with the specified alignment in relation to the specified control.
control
pos
alignment
onclose
Throws:
Asynchronously displays the context menu at the specified position in relation to the specified component.
component
Can be any Wisej visual component: i.e. tool button, column header, etc.
position
Asynchronously displays the context menu at the specified position.
pos
Asynchronously displays the context menu at the specified position in relation to the specified control.
control
position
Throws:
Asynchronously displays the context menu at the specified position in relation to the specified control.
control
pos
Throws:
Asynchronously displays the context menu at the specified position and with the specified alignment in relation to the specified control.
control
pos
alignment
Throws:
Updates the component on the client. Overridden to update the owner control.
All wisej components implement this interface.
Allows an object to serialize itself.
An array of objects that represent the menu items to add to the shortcut menu.
: Returns or sets whether the text displayed by the control is displayed from right to left.
: Returns the component that is displaying the shortcut menu.
: Returns the control that is displaying the shortcut menu.
A that specifies position of the menu in relation to the component parameter.
Optional async handler for the close event; called when the context menu has been closed. It's the equivalent of handling the
A that specifies the coordinates at which to display the menu.
Optional async handler for the close event; called when the context menu has been closed. It's the equivalent of handling the
A that specifies the control with which this shortcut menu is associated.
A that specifies position of the menu in relation to the control parameter.
Optional async handler for the close event; called when the context menu has been closed. It's the equivalent of handling the
The control parameter is null.
The control is not visible.
A that specifies the control with which this shortcut menu is associated.
A that specifies the coordinates at which to display the menu. These coordinates are specified relative to the client coordinates of the control specified in the control parameter.
Optional async handler for the close event; called when the context menu has been closed. It's the equivalent of handling the
The control parameter is null.
The handle of the control does not exist or the control is not visible.
A that specifies the control with which this shortcut menu is associated.
A that specifies the coordinates at which to display the menu. These coordinates are specified relative to the client coordinates of the control specified in the control parameter.
A that specifies the alignment of the control relative to the pos parameter.
Optional async handler for the close event; called when the context menu has been closed. It's the equivalent of handling the
The control parameter is null.
The control is not visible.
A that specifies position of the menu in relation to the component parameter.
Returns: .
A that specifies the coordinates at which to display the menu.
Returns: .
A that specifies the control with which this shortcut menu is associated.
A that specifies position of the menu in relation to the control parameter.
Returns: .
The control parameter is null.
The control is not visible.
A that specifies the control with which this shortcut menu is associated.
A that specifies the coordinates at which to display the menu. These coordinates are specified relative to the client coordinates of the control specified in the control parameter.
Returns: .
The control parameter is null.
The handle of the control does not exist or the control is not visible.
A that specifies the control with which this shortcut menu is associated.
A that specifies the coordinates at which to display the menu. These coordinates are specified relative to the client coordinates of the control specified in the control parameter.
A that specifies the alignment of the control relative to the pos parameter.
Returns: .
The control parameter is null.
The control is not visible.
Fired when the context menu collapses.
Occurs before the context menu is displayed on the client.
Occurs after the context menu is displayed on the client.