menu

ASP.NET MVC - EJ2

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class FileManagerToolbarItemBuilder - ASP.NETMVC-EJ2 API Reference | Syncfusion

    Show / Hide Table of Contents

    Class FileManagerToolbarItemBuilder

    Inheritance
    System.Object
    Syncfusion.EJ2.ControlBuilder
    FileManagerToolbarItemBuilder
    Namespace: Syncfusion.EJ2.FileManager
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class FileManagerToolbarItemBuilder : ControlBuilder

    Constructors

    FileManagerToolbarItemBuilder()

    Declaration
    public FileManagerToolbarItemBuilder()

    FileManagerToolbarItemBuilder(List<FileManagerToolbarItem>)

    Declaration
    public FileManagerToolbarItemBuilder(List<FileManagerToolbarItem> collection)
    Parameters
    Type Name Description
    System.Collections.Generic.List<FileManagerToolbarItem> collection

    Methods

    Add()

    Declaration
    public void Add()

    Align(ItemAlign)

    Specifies the location for aligning Toolbar items on the Toolbar. Each command will be aligned according to the align property. The possible values for this property as follows Left: To align commands to the left side of the Toolbar. Center: To align commands at the center of the Toolbar. Right: To align commands to the right side of the Toolbar.

    Declaration
    public FileManagerToolbarItemBuilder Align(ItemAlign align)
    Parameters
    Type Name Description
    ItemAlign align
    Returns
    Type
    FileManagerToolbarItemBuilder

    CssClass(String)

    Defines single/multiple classes (separated by space) to be used for customization of commands.

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

    Disabled(Boolean)

    Specifies whether an item should be disabled or not.

    Declaration
    public FileManagerToolbarItemBuilder Disabled(bool disabled)
    Parameters
    Type Name Description
    System.Boolean disabled
    Returns
    Type
    FileManagerToolbarItemBuilder

    HtmlAttributes(Object)

    Defines htmlAttributes used to add custom attributes to Toolbar command. Supports HTML attributes such as style, class, etc.

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

    Id(String)

    Specifies the unique ID to be used with button or input element of Toolbar items.

    Declaration
    public FileManagerToolbarItemBuilder Id(string id)
    Parameters
    Type Name Description
    System.String id
    Returns
    Type
    FileManagerToolbarItemBuilder

    Name(String)

    Specifies the unique name for each toolbar item rendered in File Manager. This name is used to map the toolbar items in the File Manager component.

    Declaration
    public FileManagerToolbarItemBuilder Name(string name)
    Parameters
    Type Name Description
    System.String name
    Returns
    Type
    FileManagerToolbarItemBuilder

    Overflow(OverflowOption)

    Specifies the Toolbar command display area when an element's content is too large to fit available space. This is applicable only to popup mode. The possible values for this property as follows Show: Always shows the item as the primary priority on the Toolbar. Hide: Always shows the item as the secondary priority on the popup. None: No priority for display, and as per normal order moves to popup when content exceeds.

    Declaration
    public FileManagerToolbarItemBuilder Overflow(OverflowOption overflow)
    Parameters
    Type Name Description
    OverflowOption overflow
    Returns
    Type
    FileManagerToolbarItemBuilder

    PrefixIcon(String)

    Defines single/multiple classes separated by space used to specify an icon for the button. The icon will be positioned before the text content if text is available, otherwise the icon alone will be rendered.

    Declaration
    public FileManagerToolbarItemBuilder PrefixIcon(string prefixIcon)
    Parameters
    Type Name Description
    System.String prefixIcon
    Returns
    Type
    FileManagerToolbarItemBuilder

    ShowAlwaysInPopup(Boolean)

    Defines the priority of items to display it in popup always. It allows to maintain toolbar item on popup always but it does not work for toolbar priority items.

    Declaration
    public FileManagerToolbarItemBuilder ShowAlwaysInPopup(bool showAlwaysInPopup)
    Parameters
    Type Name Description
    System.Boolean showAlwaysInPopup
    Returns
    Type
    FileManagerToolbarItemBuilder

    ShowTextOn(DisplayMode)

    Specifies where the button text will be displayed on popup mode of the Toolbar. The possible values for this property as follows Toolbar: Text will be displayed on Toolbar only. Overflow: Text will be displayed only when content overflows to popup. Both: Text will be displayed on popup and Toolbar.

    Declaration
    public FileManagerToolbarItemBuilder ShowTextOn(DisplayMode showTextOn)
    Parameters
    Type Name Description
    DisplayMode showTextOn
    Returns
    Type
    FileManagerToolbarItemBuilder

    SuffixIcon(String)

    Defines single/multiple classes separated by space used to specify an icon for the button. The icon will be positioned after the text content if text is available.

    Declaration
    public FileManagerToolbarItemBuilder SuffixIcon(string suffixIcon)
    Parameters
    Type Name Description
    System.String suffixIcon
    Returns
    Type
    FileManagerToolbarItemBuilder

    TabIndex(Double)

    Specifies the tab order of the Toolbar items. When positive values assigned, it allows to switch focus to the next/previous toolbar items with Tab/ShiftTab keys. By default, user can able to switch between items only via arrow keys. If the value is set to 0 for all tool bar items, then tab switches based on element order.

    Declaration
    public FileManagerToolbarItemBuilder TabIndex(double tabIndex)
    Parameters
    Type Name Description
    System.Double tabIndex
    Returns
    Type
    FileManagerToolbarItemBuilder

    Template(String)

    Specifies the HTML element/element ID as a string that can be added as a Toolbar command.

    Declaration
    public FileManagerToolbarItemBuilder Template(string template)
    Parameters
    Type Name Description
    System.String template
    Returns
    Type
    FileManagerToolbarItemBuilder

    Text(String)

    Specifies the text to be displayed on the Toolbar button.

    Declaration
    public FileManagerToolbarItemBuilder Text(string text)
    Parameters
    Type Name Description
    System.String text
    Returns
    Type
    FileManagerToolbarItemBuilder

    TooltipText(String)

    Specifies the text to be displayed on hovering the Toolbar button.

    Declaration
    public FileManagerToolbarItemBuilder TooltipText(string tooltipText)
    Parameters
    Type Name Description
    System.String tooltipText
    Returns
    Type
    FileManagerToolbarItemBuilder

    Type(ItemType)

    Specifies the types of command to be rendered in the Toolbar. Supported types are: Button: Creates the Button control with its given properties like text, prefixIcon, etc. Separator: Adds a horizontal line that separates the Toolbar commands. Input: Creates an input element that is applicable to template rendering with Syncfusion controls like DropDownList, AutoComplete, etc.

    Declaration
    public FileManagerToolbarItemBuilder Type(ItemType type)
    Parameters
    Type Name Description
    ItemType type
    Returns
    Type
    FileManagerToolbarItemBuilder

    Visible(Boolean)

    Specifies whether an item should be hidden or not.

    Declaration
    public FileManagerToolbarItemBuilder Visible(bool visible)
    Parameters
    Type Name Description
    System.Boolean visible
    Returns
    Type
    FileManagerToolbarItemBuilder

    Width(Double)

    Specifies the width of the Toolbar button commands.

    Declaration
    public FileManagerToolbarItemBuilder Width(double width)
    Parameters
    Type Name Description
    System.Double width
    Returns
    Type
    FileManagerToolbarItemBuilder

    Width(String)

    Specifies the width of the Toolbar button commands.

    Declaration
    public FileManagerToolbarItemBuilder Width(string width)
    Parameters
    Type Name Description
    System.String width
    Returns
    Type
    FileManagerToolbarItemBuilder
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved