Our blazing fast Grid component built with pure JavaScript
Hi,
I would like to apply a simple filter by code to my store.
this.mappingControl.store.filter({
property: "assigned",
value: true,
operator: "=",
});
The filter is applied correctly, but the filter in the column "assigned" is not correctly set in the filter dialog of the column.
- Screenshot 2025-01-10 100232.png (32.29 KiB) Viewed 205 times
How can this filter be set in code to be correctly reflected in the filter dialog?
Thanks, Romana
Hi Romana,
Please provide columns
config for assigned
field, data model field config for assigned
, and data json example, what data did you load.
All the best,
Alex Lazarev
How to ask for help? Please read our Support Policy
We do not write the code in bounds of forum support. If you need help with development, contact us via bryntum.com/services
Hi Alex,
columns config:
{ type: "check", field: "assigned", text: "Assigned" },
field config is just the name of the field:
static get fields() { "id", "name", "assigned" }
sample data loaded:
BR, Romana
Hi Romana,
=
is not a supported operator for boolean
fields - only isTrue
or isFalse
. Would either of those work for you as a default?