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

FileManagerToolbarRefreshButton Class

Implements the refresh button functionality.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public class FileManagerToolbarRefreshButton :
    FileManagerToolbarItemBase
Public Class FileManagerToolbarRefreshButton
    Inherits FileManagerToolbarItemBase

Remarks

The file manager stores a FileManagerToolbarRefreshButton object in the FileManagerToolbarItemCollection collection. Use theFileManagerSettingsContextMenu.Items or FileManagerSettingsToolbar.Items properties to access this collection.

Concept

Example

Declaratively:

<dx:ASPxFileManager ID="FileManager" ClientInstanceName="FileManager" runat="server" />
    <SettingsToolbar>
        <Items>
            <dx:FileManagerToolbarRefreshButton BeginGroup="false" />            
            ...
        </Items>
    </SettingsToolbar>
</dx:ASPxFileManager>

In code:

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

fm.SettingsToolbar.Items.Add(refresh);

MVC:

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

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

    settings.SettingsToolbar.Items.Add(refresh);
    ...
}).BindToFolder(Model).GetHtml()

Online Demo

Inheritance

See Also