menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class FileManagerToolbarSettings - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class FileManagerToolbarSettings

    Defines the toolbar settings for the filemanager component.

    Inheritance
    System.Object
    FileManagerToolbarSettings
    Namespace: Syncfusion.Blazor.FileManager
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class FileManagerToolbarSettings : OwningComponentBase

    Constructors

    FileManagerToolbarSettings()

    Declaration
    public FileManagerToolbarSettings()

    Properties

    ChildContent

    Gets or sets the child content for the component.

    Declaration
    public RenderFragment ChildContent { get; set; }
    Property Value
    Type
    Microsoft.AspNetCore.Components.RenderFragment

    ToolbarItems

    Gets or sets the items to be rendered in the File Manager toolbar.

    Declaration
    public List<ToolBarItemModel> ToolbarItems { get; set; }
    Property Value
    Type
    System.Collections.Generic.List<ToolBarItemModel>
    Remarks

    If not specified, then default toolbar items such as ‘New Folder’, ‘SortBy’, ‘Upload’, ‘Refresh’, ‘View’, ‘Details’ will be rendered in the File Manager toolbar. Customizations such as  setting icon, tooltip text can be done here for the required toolbar item.

    Examples
     
    <SfFileManager TValue="FileManagerDirectoryContent">
    <FileManagerAjaxSettings Url = "https://ej2-aspcore-service.azurewebsites.net/api/FileManager/FileOperations"
    UploadUrl="https://ej2-aspcore-service.azurewebsites.net/api/FileManager/Upload"
    DownloadUrl="https://ej2-aspcore-service.azurewebsites.net/api/FileManager/Download"
    GetImageUrl="https://ej2-aspcore-service.azurewebsites.net/api/FileManager/GetImage">
    </FileManagerAjaxSettings>
    <FileManagerToolbarSettings ToolbarItems="@Items"> </FileManagerToolbarSettings>
    </SfFileManager>
    @code {
    private List<ToolBarItemModel> Items = new List<ToolBarItemModel>()
    {
    new ToolBarItemModel() { Name="NewFolder"},
    new ToolBarItemModel() { Name = "Upload"},
    new ToolBarItemModel() { Name = "Cut"},
    new ToolBarItemModel() { Name = "Copy"},
    new ToolBarItemModel() { Name = "Paste"},
    new ToolBarItemModel() { Name = "Delete"},
    new ToolBarItemModel() { Name = "Download"},
    new ToolBarItemModel() { Name = "Reaname"},
    new ToolBarItemModel() { Name = "SortBy"},
    new ToolBarItemModel() { Name = "Refresh"},
    new ToolBarItemModel() { Name = "Selection"},
    new ToolBarItemModel() { Name = "View"},
    new ToolBarItemModel() { Name = "Details"},
    new ToolBarItemModel() {  Name = "CustomCheck", Text = "Check", TooltipText ="Check", PrefixIcon="e-icons e-check-box" },
    new ToolBarItemModel() {  Name = "CustomUncheck", Text = "Uncheck", TooltipText ="Uncheck", PrefixIcon="e-icons e-check-box" },
    };
    }

    Visible

    Enables or disables the visibility of toolbar in the file manager component.

    Declaration
    public bool Visible { get; set; }
    Property Value
    Type
    System.Boolean

    Methods

    BuildRenderTree(RenderTreeBuilder)

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder __builder)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder

    Dispose(Boolean)

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    OnInitializedAsync()

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type
    System.Threading.Tasks.Task

    OnParametersSetAsync()

    Declaration
    protected override Task OnParametersSetAsync()
    Returns
    Type
    System.Threading.Tasks.Task
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved