Back to Devexpress

ASPxFileManager.CustomTooltip Event

aspnet-devexpress-dot-web-dot-aspxfilemanager-88aef186.md

latest2.2 KB
Original Source

ASPxFileManager.CustomTooltip Event

Allows the tooltip for the current FileManager item to be customized.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public event FileManagerCustomTooltipEventHandler CustomTooltip
vb
Public Event CustomTooltip As FileManagerCustomTooltipEventHandler

Event Data

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

PropertyDescription
ItemProvides the File Manager’s item to which the custom tooltip is specified.
TooltipTextGets or sets a value that is the custom tooltip text.

Remarks

The FileManagerCustomTooltipEventArgs.Item property passed to the event handler allows you to determine the FileManager item being processed. To specify the tooltip text, use the FileManagerCustomTooltipEventArgs.TooltipText property.

csharp
protected void ASPxFileManager1_CustomTooltip(object source, DevExpress.Web.FileManagerCustomTooltipEventArgs e) {
    e.TooltipText = string.Format("Custom tooltip for {0} with name \"{1}\"", e.Item is FileManagerFile ? "file" : "folder", e.Item.Name); 
}

See Also

ASPxFileManager Class

ASPxFileManager Members

DevExpress.Web Namespace