Skip to main content
Tab

FileManagerSettingsToolbar Class

Contains settings that relate to the toolbar‘s functionality.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public class FileManagerSettingsToolbar :
    FileManagerSettingsBase

The following members return FileManagerSettingsToolbar objects:

Library Related API Members
ASP.NET Web Forms Controls ASPxFileManager.SettingsToolbar
RichEditDocumentSelectorSettings.ToolbarSettings
SpreadsheetDocumentSelectorSettings.ToolbarSettings
ASP.NET MVC Extensions FileManagerSettings.SettingsToolbar

Remarks

Use the ASPxFileManager.SettingsToolbar property to access the FileManagerSettingsToolbar object.

Concept

Example

Web Forms (in markup):

<dx:ASPxFileManager ID="FileManager" ClientInstanceName="FileManager" runat="server" />
    <SettingsToolbar>
        <Items>
            ...
        </Items>
          <AdaptiveToolbarImage Height="13" Width="13" Url="../Images/Adaptivity/Toolbar.png" 
        ToolTip="Toolbar" AlternateText="Toolbar" />
        <SettingsAdaptivity EnableAutoHideRootItems="true" />
    </SettingsToolbar>
</dx:ASPxFileManager>

Web Forms (in code):

ASPxFileManager fm = new ASPxFileManager();
...
fm.SettingsToolbar.AdaptiveToolbarImage.Height = Unit.Pixel(13);
fm.SettingsToolbar.AdaptiveToolbarImage.Width = Unit.Pixel(13);
fm.SettingsToolbar.AdaptiveToolbarImage.Url = Url.Content("../Images/Adaptivity/Toolbar.png"); 
fm.SettingsToolbar.AdaptiveToolbarImage.ToolTip = "Toolbar";
fm.SettingsToolbar.AdaptiveToolbarImage.AlternateText="Toolbar";
fm.SettingsToolbar.SettingsAdaptivity.EnableAutoHideRootItems = true;

MVC:

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

    settings.SettingsToolbar.AdaptiveToolbarImage.Height = Unit.Pixel(13);
    settings.SettingsToolbar.AdaptiveToolbarImage.Width = Unit.Pixel(13);
    settings.SettingsToolbar.AdaptiveToolbarImage.Url = Url.Content("../Images/Adaptivity/Toolbar.png"); 
    settings.SettingsToolbar.AdaptiveToolbarImage.ToolTip = "Toolbar";
    settings.SettingsToolbar.AdaptiveToolbarImage.AlternateText="Toolbar";
    settings.SettingsToolbar.SettingsAdaptivity.EnableAutoHideRootItems = true;
    ...
}).BindToFolder(Model).GetHtml()

Online Demo

See Also