Dear colleagues, could you advice me if it's possible to use Grid.feature.Filter on a column type: 'check'?
I tried to use the following construct but doesn't work for 'check' column.
We want to allow selection of some records in the table via the checkbox and want to allow the user to filter out only those which are checked or those which are still unchecked.
let grid = new Grid({
appendTo: document.body,
features: {
filter: true
},
autoHeight: true,
data: DataGenerator.generateData(5),
columns: [{
type: 'rownumber'
},
{
type: 'check',
text: 'CheckColumn',
field: 'done',
flex: 1
},
{
type: 'date',
text: 'DateColumn',
field: 'start',
flex: 1
},
{
type: 'number',
text: 'NumberColumn',
field: 'rank',
flex: 1
},
{
type: 'percent',
text: 'PercentColumn',
field: 'percent',
flex: 1
},
{
type: 'rating',
text: 'RatingColumn',
field: 'rating',
flex: 1
},
{
type: 'template',
text: 'TemplateColumn',
field: 'city',
flex: 1,
template: ({
value
}) => `Lives in ${value}`
},
{
type: 'widget',
text: 'Widget',
field: 'color',
flex: 1,
widgets: [{
type: 'button',
cls: 'b-raised b-orange'
}]
}
]
});