Skip to main content

FileManagerSettings.CustomCallback Property

Fires when a callback has been initiated.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.1.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public CallbackEventHandlerBase CustomCallback { get; set; }

Property Value

Type
CallbackEventHandlerBase

Remarks

The CustomCallback property allows you to perform server-side processing in response to a call to the client ASPxClientFileManager.PerformCallback method.

Use the CallbackEventArgsBase.Parameter property to pass specific information from the client side.

Use the ASPxClientFileManager.BeginCallback and ASPxClientFileManager.EndCallback client events to perform actions on the client side before and after a callback.

Example

Note

For a full example, see the FileManager - Custom filter API demo.

@Html.DevExpress().FileManager(settings => {
    settings.Name = "fileManager";
    settings.CustomCallback = (s, e) => {
        MVCxFileManager fileManager = s as MVCxFileManager;
        if(ViewData["FilterName"] != null) {
            fileManager.FilterBoxText = string.Empty;
            fileManager.FileListCustomFilter = (string)ViewData["FilterName"];
            fileManager.FileListCustomFilterBreadcrumbsText = (string)ViewData["FilterText"];
        }
    };
}).BindToFileSystemProvider(Model).GetHtml()
See Also