ListEditCustomHighlighting.StringToRegularExpression Property
Specifies whether to convert the “string” filter condition into a regular expression.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.1.dll
NuGet Package: DevExpress.Web
Declaration
Property Value
Type | Description |
---|---|
Boolean |
|
Remarks
Use the StringToRegularExpression property to convert the string filter condition (specified in the ListEditCustomFilteringEventArgs.CustomHighlighting property) into a regular expression.
The following code snippet illustrates how to highlight the “text” string followed by one or more occurrences of the “a”, “b” and “c” letters in the “Column1” and the number “50” followed by digits between 0 and 9 in the “Column2” among the filtered items.
e.CustomHighlighting = new Dictionary<string, string>() { { "Column1", "text[a-c]+" }, { "Column2", "50[0-9]" } }
e.CustomHighlighting.StringToRegularExpression = true;