Back to Devexpress

ASPxFileManager.AfterPerformCallback Event

aspnet-devexpress-dot-web-dot-aspxfilemanager-7025eae9.md

latest2.3 KB
Original Source

ASPxFileManager.AfterPerformCallback Event

Fires after a callback or a postback initiated by the control has been processed on the server.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public event FileManagerAfterPerformCallbackEventHandler AfterPerformCallback
vb
Public Event AfterPerformCallback As FileManagerAfterPerformCallbackEventHandler

Event Data

The AfterPerformCallback event's data class is FileManagerAfterPerformCallbackEventArgs. The following properties provide information specific to this event:

PropertyDescription
CallbackNameGets the callback name.

Remarks

Handle the AfterPerformCallback event to perform actions after you process a callback or a postback initiated by the control on the server. Use the FileManagerAfterPerformCallbackEventArgs.CallbackName property to identify the processed callback (e.g., ‘CHANGEFOLDER’, ‘CUSTOMCALLBACK’, etc.).

The following example illustrates how to use the AfterPerformCallback event to switch the view of ASPxFileManager items in the file list depending on whether or not the filter box contains any value.

csharp
protected void fileManager_AfterPerformCallback(object sender, DevExpress.Web.FileManagerAfterPerformCallbackEventArgs e) {
    if(e.CallbackName != FileManagerCallbackCommand.GetFileList)
        return;

    fileManager.SettingsFileList.View = string.IsNullOrEmpty(fileManager.FilterBoxText) ? FileListView.Thumbnails : FileListView.Details;
}

See Also

ASPxFileManager Class

ASPxFileManager Members

DevExpress.Web Namespace