menu

ASP.NET MVC

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SubContextMenuBuilder<T>

    Show / Hide Table of Contents

    Class SubContextMenuBuilder<T>

    Inheritance
    System.Object
    SubContextMenuBuilder<T>
    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 SubContextMenuBuilder<T>
        where T : class
    Type Parameters
    Name Description
    T

    Constructors

    SubContextMenuBuilder(ContextSettings)

    It sets an object that indicates whether to customize the context menu behavior of the grid.

    Declaration
    public SubContextMenuBuilder(ContextSettings contextMenu)
    Parameters
    Type Name Description
    ContextSettings contextMenu

    It displays the list of ContextMenu Settings

    Fields

    ContextMenu

    Declaration
    public ContextSettings ContextMenu
    Field Value
    Type Description
    ContextSettings

    Methods

    Add()

    Adds the list of subcontext menu items into contextmenu Settings.

    Declaration
    public void Add()

    ContextMenuItem(String)

    Used to set the corresponding custom context menu item to which the submenu to be appended.

    Declaration
    public SubContextMenuBuilder<T> ContextMenuItem(string contextMenuItem)
    Parameters
    Type Name Description
    System.String contextMenuItem

    It accepts the string value and displays the list of contextmenu items

    Returns
    Type Description
    SubContextMenuBuilder<T>

    SubContextMenuBuilder

    SubMenu(List<String>)

    Used to set the sub menu items to the custom context menu item.

    Declaration
    public SubContextMenuBuilder<T> SubMenu(List<string> subMenu)
    Parameters
    Type Name Description
    System.Collections.Generic.List<System.String> subMenu

    It accepts the string value and displays the list of submenu items

    Returns
    Type Description
    SubContextMenuBuilder<T>

    SubContextMenuBuilder

    Template(String)

    Used to set the corresponding template to the submenu items.

    Declaration
    public SubContextMenuBuilder<T> Template(string template)
    Parameters
    Type Name Description
    System.String template

    It accepts the string value and displays the list of contextmenu items

    Returns
    Type Description
    SubContextMenuBuilder<T>

    SubContextMenuBuilder

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved