Kendo.Mvc.UI.ContextMenu

Kendo UI ContextMenu component

Properties

AlignToAnchor

Specifies that ContextMenu should be shown aligned to the target or the filter element if specified.

AppendTo

The DOM element to which the ContextMenu will be appended. The element needs to be relatively positioned.

CloseOnClick

Specifies that sub menus should close after item selection (provided they won't navigate).

CopyAnchorStyles

Copies and uses the styles from the anchor.

DataTextField

Sets the field of the data item that provides the text of the ContextMenu items.

DataUrlField

Sets the field of the data item that provides the url of the ContextMenu items.

DataSpriteCssClassField

Sets the field of the data item that provides the sprite css class of the ContextMenu items.

DataImageUrlField

Sets the field of the data item that provides the image url of the ContextMenu items.

DataContentField

Sets the field of the data item that provides the content of the ContextMenu items.

Filter

Specifies ContextMenu filter selector - the ContextMenu will only be shown on items that satisfy the provided selector.

HoverDelay

Specifies the delay in ms before the sub menus are opened/closed - used to avoid accidental closure on leaving.

Scrollable

If enabled, the ContextMenu displays buttons that scroll the items when they cannot fit the viewport height. By default, scrolling is disabled.

ShowOn

Specifies the event or events on which ContextMenu should open. By default ContextMenu will show on contextmenu event on desktop and hold event on touch devices. Could be any pointer/mouse/touch event, also several, separated by spaces.

Target

Specifies the element on which ContextMenu should open. The default element is the document body.

Orientation

Specifies the orientation in which the menu items will be ordered

Methods

SerializeSettings

Serialize current instance to Dictionary

In this article
Not finding the help you need?