Skip to main content

CardViewDataItemTemplateContainer.GetTextWithHighlightedSearchFilterResult(String, String, Boolean, Int32) Method

Gets a result of filtering as an HTML markup where a source text (text inputted in the filter) is highlighted for each match.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web


public string GetTextWithHighlightedSearchFilterResult(
    string sourceText,
    string fieldName,
    bool isSourceTextEncoded,
    int maxLength


Name Type Description
sourceText String

A string value specifying the filter text criteria.

fieldName String

A string value specifying the name of a field attached to a column.

isSourceTextEncoded Boolean

A boolean value that specifies whether the source text is encoded.

maxLength Int32

An integer value that specifies the maximum length of the received string.


Type Description

A string value that represents filtering results in the HTML markup.


Use the GetTextWithHighlightedSearchFilterResult method to receive a filtering result while a filtered column incorporates a template. Note that the result is received as the HTML markup with the highlighted source text for each match.

See Also