Class TreeGridContextMenuOptionsBuilder
Inheritance
System.Object
TreeGridContextMenuOptionsBuilder
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Syncfusion.JavaScript
Assembly: Syncfusion.EJ.dll
Syntax
public class TreeGridContextMenuOptionsBuilder
Constructors
TreeGridContextMenuOptionsBuilder(TreeGridContextMenuOptions)
Initializes a new instance of the
Declaration
public TreeGridContextMenuOptionsBuilder(TreeGridContextMenuOptions contextmenu)
Parameters
Type | Name | Description |
---|---|---|
TreeGridContextMenuOptions | contextmenu | It accepts the list of context menu options |
Methods
ContextMenuItems(List<TreeGridContextMenuItems>)
It sets a value to add the default context menu actions as a context menu items.
Declaration
public TreeGridContextMenuOptionsBuilder ContextMenuItems(List<TreeGridContextMenuItems> defaultItems)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<TreeGridContextMenuItems> | defaultItems | It accepts the list of ContextMenuItems |
Returns
Type | Description |
---|---|
TreeGridContextMenuOptionsBuilder | TreeGridContextMenuOptionsBuilder |
ShowContextMenu()
It sets a value that indicates whether to enable the context menu action in tree grid.
Declaration
public TreeGridContextMenuOptionsBuilder ShowContextMenu()
Returns
Type | Description |
---|---|
TreeGridContextMenuOptionsBuilder | TreeGridContextMenuOptionsBuilder |
ShowContextMenu(Boolean)
It sets a value that indicates whether to enable the context menu action in tree grid.
Declaration
public TreeGridContextMenuOptionsBuilder ShowContextMenu(bool showContextMenu)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | showContextMenu | It accepts the boolean value and enables or disables the Contextmenu items |
Returns
Type | Description |
---|---|
TreeGridContextMenuOptionsBuilder | TreeGridContextMenuOptionsBuilder |