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

ASPxClientFileManagerHighlightItemTemplateEventArgs.highlightCssClassName Property

Get the name of the cascading style sheet (CSS) class associated with an item in the highlighted state.

Declaration

highlightCssClassName: string

Property Value

Type Description
string

A string that is the name of a CSS class.

Example

ASPxFileManager_HighlightTemplate

onHighlightItemTemplate = function(s, e) {
    var startIndex = e.itemName.toLowerCase().indexOf(e.filterValue.toLowerCase()),
          textStart = e.itemName.substr(0, startIndex),
          textMiddle = e.itemName.substr(startIndex, e.filterValue.length),
          textEnd = e.itemName.substr(startIndex + e.filterValue.length),
          highlightedText = textStart + "<span class='" + e.highlightCssClassName + "'>" + textMiddle +"</span>" + textEnd,
          textContainer = ASPxClientUtils.GetChildByTagName(e.templateElement, "DIV", 0);
     ASPxClientUtils.GetChildByTagName(textContainer, "SPAN", 0).innerHTML = "Name: " + highlightedText;
}
See Also