GridFieldFilterPickerGroup
Extends FieldFilterPickerGroup to allow providing a Grid from which available fields will be read. This is useful when a grid is already configured with a set of columns containing display names and type information.
The grid should have a ColumnStore configured (see columns) and a Store whose modelClass contains fields with specific data types.
Optionally, you can also use allowedFieldNames to restrict the set of fields shown in the widget.
For example:
new GridFieldFilterPickerGroup({
appendTo : domElement,
grid : myGrid,
filters : [{
property : 'startDate',
operator : '<=',
value : new Date()
}]
});
Configs
106
Configs
106Common
Other
Grid from which to read the available field list. In order to
appear as a selectable property for a filter, a column must have a field property.
If the column has a text property, that will be shown as the displayed text in the
selector; otherwise, the field property will be shown as-is.
The grid's Store's modelClass will be examined to find field data types.
You can limit available fields to a subset of the grid's columns using the allowedFieldNames configuration property.