Class ContextSettings
Gets or sets an object that indicates whether to customize the context menu behavior of the grid.
Inherited Members
Namespace: Syncfusion.JavaScript.Models
Assembly: Syncfusion.EJ.dll
Syntax
public class ContextSettings : EJTagHelper
Constructors
ContextSettings()
Declaration
public ContextSettings()
Properties
ContextMenuItems
Gets or sets a value that indicates whether to add the default context menu actions as a context menu items If enableContextMenu is true it will show all the items related to the target, if you want selected items from contextmenu you have to mention in the contextMenuItems.
Declaration
[JsonProperty("contextMenuItems")]
public List<string> ContextMenuItems { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<System.String> |
CustomContextMenuItem
Gets or sets a value that indicates whether to add custom contextMenu items within the toolbar to perform any action in the grid.
Declaration
[JsonProperty("customContextMenuItems")]
[Obsolete]
public List<CustomContexMenuItems> CustomContextMenuItem { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<CustomContexMenuItems> |
CustomContextMenuItems
Gets or sets a value that indicates whether to add custom contextMenu items within the toolbar to perform any action in the grid.
Declaration
[JsonProperty("customContextMenuItems")]
public List<CustomContextMenuItems> CustomContextMenuItems { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<CustomContextMenuItems> |
DisableDefaultItems
Gets or sets a value that indicates whether to disable the default context menu items in the grid.
Declaration
[JsonProperty("disableDefaultItems")]
public bool DisableDefaultItems { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
EnableContextMenu
Gets or sets a value that indicates whether to enable the context menu action in the grid.
Declaration
[JsonProperty("enableContextMenu")]
public bool EnableContextMenu { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
SubContextMenu
Used to get or set the subMenu to the corresponding custom context menu item.
Declaration
[JsonProperty("subContextMenu")]
public virtual List<SubContextMenu> SubContextMenu { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<SubContextMenu> |
Methods
ShouldSerializeContextmenuItems()
Gets or sets a value that indicates whether the contextMenu items should serialize.
Declaration
public bool ShouldSerializeContextmenuItems()
Returns
Type | Description |
---|---|
System.Boolean | It returns the Boolean. |
ShouldSerializeCustomContextmenuItems()
Gets or sets a value that indicates whether the custom contextMenu items should serialize. ///
Declaration
public bool ShouldSerializeCustomContextmenuItems()
Returns
Type | Description |
---|---|
System.Boolean | It returns the Boolean. |