Hi,
I'm having an issue with Gantt and the Filterbar feature. I have it enabled and some columns allowed for filtering. My code for one of the columns:
filterable : {
filterField : statusCombo,
filterFn : ({ record, value }) => !value.length || value.includes(record.status)
}
The code for the "statusCombo":
const statusCombo = {
type : 'combo',
multiSelect : true,
store: statusCodesStore,
valueField: 'id',
displayField: 'description',
chipView: {
itemTpl: (record, i) => {
return `${record.id}`;
}
}
};
The store is filled properly, and the filterfield on the filterbar is looking correctly. But it seems to have a mind of its own. It filters only correctly when there's just 1 value selected, so when you have multiple values selected, all records are filtered out. And even if I change the filterFn to something that should never return anything (e.g. "filterFn : ({ record, value }) => !value.length || value.includes(record.city)" and I don't have a "city" property), it keeps doing that filtering and seems to completely ignore the filterFn.
Could you have a look at that?
Thank you!