Filter Field Templates
You can customize the FilterFiled appearance and behavior through its templates.
The FilterField provides the following templates:
Value Template
The ValueTemplate allows you to customize the default value editor of a single Filter Field. You can replace the default editor component or change the component settings.
The context of theValueTemplate is of type FilterFieldValueTemplateContext. You can get and set its FilterDescriptor property, which is of type FilterDescriptor.
The
FilterDescriptorValueproperty is of typeobjectand isnullby default. As a result, theValueof the component inside theValueTemplatemust benullablefor all types, exceptstring.
To use the Filter Field value template, add a <ValueTemplate> tag inside the FilterField.
Using FilterField ValueTemplate