menu

ASP.NET Web Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class MenuProperties

    Show / Hide Table of Contents

    Class MenuProperties

    Inheritance
    System.Object
    EJTagHelper
    MenuProperties
    Inherited Members
    EJTagHelper.GetControlDetails(String)
    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.Models
    Assembly: Syncfusion.EJ.dll
    Syntax
    public class MenuProperties : EJTagHelper

    Constructors

    MenuProperties()

    Declaration
    public MenuProperties()

    Properties

    AnimationType

    Gets or sets to enable or disable the Animation while hover or click an menu items.

    Declaration
    [JsonProperty("animationType")]
    [JsonConverter(typeof(StringEnumConverter))]
    public AnimationType AnimationType { get; set; }
    Property Value
    Type Description
    AnimationType

    The animation type.

    BeforeOpen

    Occurs before context menu gets open.

    Declaration
    [JsonProperty("beforeOpen")]
    public string BeforeOpen { get; set; }
    Property Value
    Type Description
    System.String

    The before open.

    Click

    Occurs when mouse click on menu items.

    Declaration
    [JsonProperty("click")]
    public string Click { get; set; }
    Property Value
    Type Description
    System.String

    The click.

    Close

    Occurs when context menu on close.

    Declaration
    [JsonProperty("close")]
    public string Close { get; set; }
    Property Value
    Type Description
    System.String

    The close.

    Container

    Gets or sets the container id of submenu.On clicking the specified sub menu element, sub menu gets shown.

    Declaration
    [JsonProperty("container")]
    public string Container { get; set; }
    Property Value
    Type Description
    System.String

    The sub menu target.

    ContextMenuTarget

    Gets or sets the target id of context menu. On right clicking the specified contextTarget element, context menu gets shown.

    Declaration
    [JsonProperty("contextMenuTarget")]
    public string ContextMenuTarget { get; set; }
    Property Value
    Type Description
    System.String

    The context menu target.

    Create

    Occurs when create menu items

    Declaration
    [JsonProperty("create")]
    public string Create { get; set; }
    Property Value
    Type Description
    System.String

    The create.

    CssClass

    Gets or sets the CSS class to achieve custom theme.

    Declaration
    [JsonProperty("cssClass")]
    public string CssClass { get; set; }
    Property Value
    Type Description
    System.String

    The css class.

    Destroy

    Occurs when destroy menu items.

    Declaration
    [JsonProperty("destroy")]
    public string Destroy { get; set; }
    Property Value
    Type Description
    System.String

    The destroy.

    EmptyDataText

    Gets or sets the empty data text.

    Declaration
    public string EmptyDataText { get; set; }
    Property Value
    Type Description
    System.String

    The empty data text.

    EnableAnimation

    Gets or sets to enable or disable the Animation effect while hover or click an menu items.

    Declaration
    [JsonProperty("enableAnimation")]
    public bool EnableAnimation { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if [enableAnimation]; otherwise, false

    EnableCenterAlign

    Gets or sets the root menu items to be aligned center in horizontal menu.

    Declaration
    [JsonProperty("enableCenterAlign")]
    public bool EnableCenterAlign { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if [enableCenterAlign]; otherwise, false

    Enabled

    Gets or sets the enabled.

    Declaration
    [JsonProperty("enabled")]
    public bool Enabled { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if [enabled]; otherwise, false

    EnableRTL

    Gets or sets the menu items to be displayed in right to left direction.

    Declaration
    [JsonProperty("enableRTL")]
    public bool EnableRTL { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if [enableRTL]; otherwise, false

    EnableSeparator

    Gets or sets the enable separator.

    Declaration
    [JsonProperty("enableSeparator")]
    public bool EnableSeparator { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if [enableSeparator]; otherwise, false

    ExcludeTarget

    Gets or sets the target which needs to be excluded. i.e., The context menu will not be displayed in those specified targets.

    Declaration
    [JsonProperty("excludeTarget")]
    public string ExcludeTarget { get; set; }
    Property Value
    Type Description
    System.String

    The exclude target.

    Height

    Gets or sets the height of the root menu.

    Declaration
    [JsonProperty("height")]
    public string Height { get; set; }
    Property Value
    Type Description
    System.String

    The height.

    HtmlAttributes

    Gets or sets the html attributes.

    Declaration
    [JsonProperty("htmlAttributes")]
    public IDictionary<string, object> HtmlAttributes { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IDictionary<System.String, System.Object>

    The HTML attributes.

    IsResponsive

    Gets or sets the responsive support for Menu items during the window resizing time.

    Declaration
    [JsonProperty("isResponsive")]
    public bool IsResponsive { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if [isResponsive]; otherwise, false

    Items

    Gets or sets the menu items.

    Declaration
    [JsonIgnore]
    public List<MenuBaseItem> Items { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<MenuBaseItem>

    The items.

    Keydown

    Occurs when key down on menu items.

    Declaration
    [JsonProperty("keydown")]
    public string Keydown { get; set; }
    Property Value
    Type Description
    System.String

    The keydown.

    Locale

    Gets or sets the different culture can be given locale property, Text present in titleText will be localized to respective culture.

    Declaration
    [JsonProperty("locale")]
    public string Locale { get; set; }
    Property Value
    Type Description
    System.String

    The locale.

    MenuFields

    Gets or sets the fields to bind the data source and it includes following field members to make databind easier.

    Declaration
    [JsonProperty("fields")]
    public MenuFields MenuFields { get; set; }
    Property Value
    Type Description
    MenuFields

    The fields.

    MenuType

    Gets or sets the type of the menu. Essential JavaScript Menu consists of two type of menu, they are Normal Menu and Context Menu mode.

    Declaration
    [JsonProperty("menuType")]
    [JsonConverter(typeof(StringEnumConverter))]
    public MenuType MenuType { get; set; }
    Property Value
    Type Description
    MenuType

    The menu type.

    Mouseout

    Occurs when mouse out from menu items.

    Declaration
    [JsonProperty("mouseout")]
    public string Mouseout { get; set; }
    Property Value
    Type Description
    System.String

    The mouse out.

    Mouseover

    Occurs when mouse over the Menu items.

    Declaration
    [JsonProperty("mouseover")]
    public string Mouseover { get; set; }
    Property Value
    Type Description
    System.String

    The mouse over.

    Open

    Occurs when context menu on open.

    Declaration
    [JsonProperty("open")]
    public string Open { get; set; }
    Property Value
    Type Description
    System.String

    The open.

    OpenOnClick

    Gets or sets the sub menu items to be show or open only on click.

    Declaration
    [JsonProperty("openOnClick")]
    public bool OpenOnClick { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if [openOnClick]; otherwise, false

    Orientation

    Specifies the orientation of normal menu. Normal menu can rendered in horizontal or vertical direction by using this API.

    Declaration
    [JsonProperty("orientation")]
    [JsonConverter(typeof(StringEnumConverter))]
    public Orientation Orientation { get; set; }
    Property Value
    Type Description
    Orientation

    The orientation.

    OverflowClose

    Occurs when the popup menu is closed.

    Declaration
    [JsonProperty("overflowClose")]
    public string OverflowClose { get; set; }
    Property Value
    Type Description
    System.String

    The overflow close.

    OverflowHeight

    Gets or sets the overflowheight of the popup menu.

    Declaration
    [JsonProperty("overflowHeight")]
    public string OverflowHeight { get; set; }
    Property Value
    Type Description
    System.String

    The overflowheight.

    OverflowOpen

    Occurs when the popup menu is opened.

    Declaration
    [JsonProperty("overflowOpen")]
    public string OverflowOpen { get; set; }
    Property Value
    Type Description
    System.String

    The overflow open.

    OverflowWidth

    Gets or sets the overflowwidth of the popup menu.

    Declaration
    [JsonProperty("overflowWidth")]
    public string OverflowWidth { get; set; }
    Property Value
    Type Description
    System.String

    The overflowwidth.

    ShowRootLevelArrows

    Gets or sets show root level arrows.

    Declaration
    [JsonProperty("showRootLevelArrows")]
    public bool ShowRootLevelArrows { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if [showRootLevelArrows]; otherwise, false

    ShowSubLevelArrows

    Gets or sets the show sub level arrows.

    Declaration
    [JsonProperty("showSubLevelArrows")]
    public bool ShowSubLevelArrows { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if [showSubLevelArrows]; otherwise, false

    SubMenuDirection

    Gets or sets the position of pulldown submenus that will appear on mouse over.

    Declaration
    [JsonConverter(typeof(StringEnumConverter))]
    [JsonProperty("subMenuDirection")]
    public Direction SubMenuDirection { get; set; }
    Property Value
    Type Description
    Direction

    The sub menu direction.

    TitleText

    Specifies the title to responsive menu.

    Declaration
    [JsonProperty("titleText")]
    public string TitleText { get; set; }
    Property Value
    Type Description
    System.String

    Width

    Gets or sets the width of the main menu.

    Declaration
    [JsonProperty("width")]
    public string Width { get; set; }
    Property Value
    Type Description
    System.String

    The width.

    Methods

    GetControlDetails()

    Declaration
    protected override object GetControlDetails()
    Returns
    Type Description
    System.Object
    Overrides
    EJTagHelper.GetControlDetails()

    ShouldSerializeMenuBaseItem()

    ShouldSerialize Method for MenuBaseItem

    Declaration
    public bool ShouldSerializeMenuBaseItem()
    Returns
    Type Description
    System.Boolean

    ShouldSerializeMenuFields()

    ShouldSerialize Method for MenuFields

    Declaration
    public bool ShouldSerializeMenuFields()
    Returns
    Type Description
    System.Boolean
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved