Our blazing fast Grid component built with pure JavaScript


Post by gregc »

The grid filter column comes with a lot of different options such as

not empty
equals
does not equal
contains
does not contain
one of
not one of
etc.

I don't want to implement all of these server side, can I change the list, probably just to "contains"

thanks!

filter_options.png
filter_options.png (53.14 KiB) Viewed 227 times

Post by tasnim »

Hi,

If I understood correctly, You could override the operators using https://bryntum.com/products/schedulerpro/docs/api/Grid/widget/GridFieldFilterPickerGroup#config-operators

Example

        filter : {
            property     : 'city',
            operator     : '=',
            value        : 'Paris',
            pickerConfig : {
                operators : {
                    string : [
                        { value : 'includes', text : 'contains' }
                    ]
                }
            }
        }
Attachments
Screenshot 2024-03-25 131833.png
Screenshot 2024-03-25 131833.png (18.3 KiB) Viewed 211 times

Post by gregc »

That works great, thanks!


Post Reply