A newer version of this page is available. Switch to the current version.

FileManagerSettings.SettingsToolbar Property

Provides access to the visibility settings of toolbar items.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v19.2.dll

Declaration

public FileManagerSettingsToolbar SettingsToolbar { get; }

Property Value

Type Description
FileManagerSettingsToolbar

A FileManagerSettingsToolbar object that contains the visibility options.

Remarks

@Html.DevExpress().FileManager( settings => {
    settings.Name = "fileManager";

    FileManagerToolbarRefreshButton refresh = new FileManagerToolbarRefreshButton();
    refresh.BeginGroup = false;

    FileManagerToolbarCustomButton customButton = new FileManagerToolbarCustomButton();
    customButton.Text = "Thumbnails View";
    customButton.CommandName = "ChangeView-Thumbnails";
    customButton.GroupName = "ViewMode";
    customButton.Image.IconID = "grid_cards_16x16";

    settings.SettingsToolbar.Items.Add(refresh);
    settings.SettingsToolbar.Items.Add(customButton);

    ...
}).BindToFolder(Model).GetHtml()

Online Demo

See Also