Back to Devexpress

ASPxFileManager.CustomFileInfoDisplayText Event

aspnet-devexpress-dot-web-dot-aspxfilemanager-4e621467.md

latest3.0 KB
Original Source

ASPxFileManager.CustomFileInfoDisplayText Event

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

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public event FileManagerCustomFileInfoDisplayTextEventHandler CustomFileInfoDisplayText
vb
Public Event CustomFileInfoDisplayText As FileManagerCustomFileInfoDisplayTextEventHandler

Event Data

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

PropertyDescription
DisplayTextGets or sets the file info display text.
EncodeHtmlGets 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.
FileGets the file whose information is processed.
FileInfoTypeGets the type of the currently processed file information.
ItemGets 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).

aspx
<dx:ASPxFileManager ID="FileManager" runat="server"OnCustomFileInfoDisplayText="FileManager_CustomFileInfoDisplayText" />
    ...
</dx:ASPxFileManager>
csharp
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

File Manager

ASPxFileManager Class

ASPxFileManager Members

DevExpress.Web Namespace