Back to Devexpress

ASPxFileManager.DetailsViewCustomColumnDisplayText Event

aspnet-devexpress-dot-web-dot-aspxfilemanager-1a614de6.md

latest3.2 KB
Original Source

ASPxFileManager.DetailsViewCustomColumnDisplayText Event

Allows you to specify the display text of a custom column cell.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public event FileManagerDetailsViewCustomColumnDisplayTextEventHandler DetailsViewCustomColumnDisplayText
vb
Public Event DetailsViewCustomColumnDisplayText As FileManagerDetailsViewCustomColumnDisplayTextEventHandler

Event Data

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

PropertyDescription
ColumnGets the column whose cells are currently being processed.
DisplayTextSpecifies the display text for the cell currently being processed.
EncodeHtmlGets or sets a value that specifies whether the column 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.
ItemGets the file manager’s item whose information is processed.

Remarks

aspx
<dx:ASPxFileManager ID="ASPxFileManager1" runat="server" 
    OnDetailsViewCustomColumnDisplayText="ASPxFileManager1_DetailsViewCustomColumnDisplayText" >
    ...
</dx:ASPxFileManager>
csharp
protected void ASPxFileManager1_DetailsViewCustomColumnDisplayText(object source, DevExpress.Web.FileManagerDetailsViewCustomColumnDisplayTextEventArgs e) {
    e.DisplayText = e.File.Extension.Remove(0, 1);
}

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

Concept

See Also

Custom Columns

File Manager

ASPxFileManager Class

ASPxFileManager Members

DevExpress.Web Namespace