Supported field types
SPListViewFilter supports these field types:
- Single line of text
- Multiple lines of text
- Choice (with multiple selection)
- Number
- Date and Time
- Currency
- Lookup (with multiple selection)
- Yes/No
- Person or Group
- Hyperlink
- Approval Status
- Managed metadata (with multiple selection)
SPListViewFilter builds filter form using different types of controls:
- TextBox. "Contains" criteria filter
- TextBox with autocomplete
- TextBox with options. Allows user to choose filter criteria that can be one of these:
- Equals
- Not equals
- Contains
- Begins with
- Date
- Date Range
- DropDownList
- DropDownList with multiple selection
- People picker
- MetaData picker
Relation between field type and supported filter types is represented in this matrix:
