Tab

ASPxFileManager.CustomFileInfoDisplayText Event

Allows you to display the custom file information in the file tooltip and columns.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.2.dll

Declaration

public event FileManagerCustomFileInfoDisplayTextEventHandler CustomFileInfoDisplayText

Event Data

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

Property Description
DisplayText Gets or sets the file info display text.
EncodeHtml Gets or sets a value that specifies whether the file info display text keeps any of its values that are HTML as HTML, or instead, strips out the HTML markers.
File Gets the file whose information is processed.
FileInfoType Gets the type of the currently processed file information.
Item Gets the file manager’s item whose information is processed.

Remarks

The CustomFileInfoDisplayText event allows you to specify the custom file information (for example, the file size and the last modified date).

<dx:ASPxFileManager ID="FileManager" runat="server"OnCustomFileInfoDisplayText="FileManager_CustomFileInfoDisplayText"  />
    ...
</dx:ASPxFileManager>
protected void FileManager_CustomFileInfoDisplayText(object source, FileManagerCustomFileInfoDisplayTextEventArgs e)
{
    if (e.Item.FullName == "file1.txt")
    {
        // your code
    }
}

Set the AllowCustomizeFolderDisplayText property to true to raise the DetailsViewCustomColumnDisplayText event for folders.

See Also