Our blazing fast Grid component built with pure JavaScript


Post by romanasturma »

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
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


Post by alex.l »

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


Post by romanasturma »

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:

{ "123", "abc", true }

BR, Romana


Post by marcio »

Hey Romana,

Thanks for sharing the information. That looks like a bug. I was able to reproduce this in our demos.

Please watch the ticket to receive live updates on the fix https://github.com/bryntum/support/issues/10597.

Best regards,
Márcio

How to ask for help? Please read our Support Policy


Post by emil »

Hi Romana,

= is not a supported operator for boolean fields - only isTrue or isFalse. Would either of those work for you as a default?


Post Reply