Skip to main content
A newer version of this page is available. .
Tab

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.v18.2.dll

Declaration

public event FileManagerAfterPerformCallbackEventHandler AfterPerformCallback

Event Data

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

Property Description
CallbackName Gets 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.


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