ASP.NET MVC - EJ2

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

    Show / Hide Table of Contents

    Class DropDownButtonBuilder

    Inheritance
    System.Object
    ControlBuilder
    DropDownButtonBuilder
    Inherited Members
    ControlBuilder.Context
    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.EJ2.SplitButtons
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class DropDownButtonBuilder : ControlBuilder

    Constructors

    DropDownButtonBuilder()

    Declaration
    public DropDownButtonBuilder()

    DropDownButtonBuilder(DropDownButton)

    Declaration
    public DropDownButtonBuilder(DropDownButton model)
    Parameters
    Type Name Description
    DropDownButton model

    Fields

    model

    Declaration
    public DropDownButton model
    Field Value
    Type Description
    DropDownButton

    Properties

    HtmlAttr

    Declaration
    public IDictionary<string, object> HtmlAttr { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IDictionary<System.String, System.Object>

    ID

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

    Output

    Declaration
    public override TextWriter Output { get; set; }
    Property Value
    Type Description
    System.IO.TextWriter
    Overrides
    ControlBuilder.Output

    Methods

    BeforeClose(String)

    Triggers before closing the DropDownButton popup.

    Declaration
    public DropDownButtonBuilder BeforeClose(string beforeClose)
    Parameters
    Type Name Description
    System.String beforeClose
    Returns
    Type Description
    DropDownButtonBuilder

    BeforeItemRender(String)

    Triggers while rendering each Popup item of DropDownButton.

    Declaration
    public DropDownButtonBuilder BeforeItemRender(string beforeItemRender)
    Parameters
    Type Name Description
    System.String beforeItemRender
    Returns
    Type Description
    DropDownButtonBuilder

    BeforeOpen(String)

    Triggers before opening the DropDownButton popup.

    Declaration
    public DropDownButtonBuilder BeforeOpen(string beforeOpen)
    Parameters
    Type Name Description
    System.String beforeOpen
    Returns
    Type Description
    DropDownButtonBuilder

    Close(String)

    Triggers while closing the DropDownButton popup.

    Declaration
    public DropDownButtonBuilder Close(string close)
    Parameters
    Type Name Description
    System.String close
    Returns
    Type Description
    DropDownButtonBuilder

    CloseActionEvents(String)

    Specifies the event to close the DropDownButton popup.

    Declaration
    public DropDownButtonBuilder CloseActionEvents(string closeActionEvents)
    Parameters
    Type Name Description
    System.String closeActionEvents
    Returns
    Type Description
    DropDownButtonBuilder

    Content(String)

    Defines the content of the DropDownButton element that can either be a text or HTML elements.

    Declaration
    public DropDownButtonBuilder Content(string content)
    Parameters
    Type Name Description
    System.String content
    Returns
    Type Description
    DropDownButtonBuilder

    ContentTemplate(Action<Object>)

    Declaration
    public DropDownButtonBuilder ContentTemplate(Action<object> template)
    Parameters
    Type Name Description
    System.Action<System.Object> template
    Returns
    Type Description
    DropDownButtonBuilder

    ContentTemplate(Func<Object, Object>)

    Declaration
    public DropDownButtonBuilder ContentTemplate(Func<object, object> template)
    Parameters
    Type Name Description
    System.Func<System.Object, System.Object> template
    Returns
    Type Description
    DropDownButtonBuilder

    Created(String)

    Triggers once the component rendering is completed.

    Declaration
    public DropDownButtonBuilder Created(string created)
    Parameters
    Type Name Description
    System.String created
    Returns
    Type Description
    DropDownButtonBuilder

    CreatePopupOnClick(Boolean)

    Specifies the popup element creation on open.

    Declaration
    public DropDownButtonBuilder CreatePopupOnClick(bool createPopupOnClick = true)
    Parameters
    Type Name Description
    System.Boolean createPopupOnClick
    Returns
    Type Description
    DropDownButtonBuilder

    CssClass(String)

    Defines class/multiple classes separated by a space in the DropDownButton element. The DropDownButton size and styles can be customized by using this.

    Declaration
    public DropDownButtonBuilder CssClass(string cssClass)
    Parameters
    Type Name Description
    System.String cssClass
    Returns
    Type Description
    DropDownButtonBuilder

    Disabled(Boolean)

    Specifies a value that indicates whether the DropDownButton is disabled or not.

    Declaration
    public DropDownButtonBuilder Disabled(bool disabled = true)
    Parameters
    Type Name Description
    System.Boolean disabled
    Returns
    Type Description
    DropDownButtonBuilder

    EnableHtmlSanitizer(Boolean)

    Defines whether to allow the cross-scripting site or not.

    Declaration
    public DropDownButtonBuilder EnableHtmlSanitizer(bool enableHtmlSanitizer = true)
    Parameters
    Type Name Description
    System.Boolean enableHtmlSanitizer
    Returns
    Type Description
    DropDownButtonBuilder

    EnablePersistence(Boolean)

    Enable or disable persisting component's state between page reloads.

    Declaration
    public DropDownButtonBuilder EnablePersistence(bool enablePersistence = true)
    Parameters
    Type Name Description
    System.Boolean enablePersistence
    Returns
    Type Description
    DropDownButtonBuilder

    EnableRtl(Boolean)

    Enable or disable rendering component in right to left direction.

    Declaration
    public DropDownButtonBuilder EnableRtl(bool enableRtl = true)
    Parameters
    Type Name Description
    System.Boolean enableRtl
    Returns
    Type Description
    DropDownButtonBuilder

    HtmlAttributes(Object)

    Allows additional HTML attributes such as title, name, etc., and accepts n number of attributes in a key-value pair format.

    Declaration
    public DropDownButtonBuilder HtmlAttributes(object htmlAttributes)
    Parameters
    Type Name Description
    System.Object htmlAttributes
    Returns
    Type Description
    DropDownButtonBuilder

    IconCss(String)

    Defines class/multiple classes separated by a space for the DropDownButton that is used to include an icon. DropDownButton can also include font icon and sprite image.

    Declaration
    public DropDownButtonBuilder IconCss(string iconCss)
    Parameters
    Type Name Description
    System.String iconCss
    Returns
    Type Description
    DropDownButtonBuilder

    IconPosition(SplitButtonIconPosition)

    Positions the icon before/top of the text content in the DropDownButton. The possible values are: Left: The icon will be positioned to the left of the text content. Top: The icon will be positioned to the top of the text content.

    Declaration
    public DropDownButtonBuilder IconPosition(SplitButtonIconPosition iconPosition)
    Parameters
    Type Name Description
    SplitButtonIconPosition iconPosition
    Returns
    Type Description
    DropDownButtonBuilder

    Items(Object)

    Specifies action items with its properties which will be rendered as DropDownButton popup.

    Declaration
    public DropDownButtonBuilder Items(object items)
    Parameters
    Type Name Description
    System.Object items
    Returns
    Type Description
    DropDownButtonBuilder

    Locale(String)

    Overrides the global culture and localization value for this component. Default global culture is 'en-US'.

    Declaration
    public DropDownButtonBuilder Locale(string locale)
    Parameters
    Type Name Description
    System.String locale
    Returns
    Type Description
    DropDownButtonBuilder

    Open(String)

    Triggers while opening the DropDownButton popup.

    Declaration
    public DropDownButtonBuilder Open(string open)
    Parameters
    Type Name Description
    System.String open
    Returns
    Type Description
    DropDownButtonBuilder

    Render()

    Declaration
    public HtmlString Render()
    Returns
    Type Description
    System.Web.HtmlString

    Select(String)

    Triggers while selecting action item in DropDownButton popup.

    Declaration
    public DropDownButtonBuilder Select(string select)
    Parameters
    Type Name Description
    System.String select
    Returns
    Type Description
    DropDownButtonBuilder

    Target(String)

    Allows to specify the DropDownButton popup item element.

    Declaration
    public DropDownButtonBuilder Target(string target)
    Parameters
    Type Name Description
    System.String target
    Returns
    Type Description
    DropDownButtonBuilder
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved