Overview
Simple String Filter
The SimpleStringFilter<T>
filter can only be applied to string
properties, the filter can be configured to be either case sensitive or case insensitive as well as being able to either exact or partial matches against the filter value provided by the user.
The table below demonstrates the different way a string filter can be used, The first two columns will only match if the input string is exactly the same as the target property (eg. "Gordon Freeman" == "Gordon Freeman"
). The second two columns will match if the input appears as a substring of the target property (eg. "Gordon Freeman".Contains("ee")
).
Exact, Case Sensitive |
Exact, Case Insensitive |
Partial, Case Sensitive |
Partial, Case Insensitive |
---|---|---|---|
No records! | |||
Displaying Page: 1 of 0 (0 total records)
|
Parameters
The following parameters can be set for each SimpleStringFilter<T>
Parameter | Type | Required | Description | Default Value |
---|---|---|---|---|
DefaultValue |
string |
❌ | If set, this filter wil be active when the table loads and will filter the target property with the provided value | null |
IgnoreCase |
bool |
❌ | Case will be ignored when comparing the input string to the target property | false |
Exact |
bool |
❌ | Instead of attempting to match the input string to the target property exactly, the filter will check to see if the input string exists as a substring of the target property. Note: This can have a noticeable effect on performance on large data sets. | true |