GridViewPreviewRowTemplateContainer.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.2.dll
NuGet Package: DevExpress.Web
#Declaration
public string GetTextWithHighlightedSearchFilterResult(
string sourceText,
string fieldName,
bool isSourceTextEncoded,
int maxLength
)
#Parameters
Name | Type | Description |
---|---|---|
source |
String | A string value specifying the filter text criteria. |
field |
String | A string value specifying the name of a field attached to a column. |
is |
Boolean | A boolean value that specifies whether the source text is encoded. |
max |
Int32 | An integer value that specifies the maximum length of the received string. |
#Returns
Type | Description |
---|---|
String | A string value that represents filtering results in the HTML markup. |
#Remarks
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.