Our blazing fast Grid component built with pure JavaScript


Post by th@digi3 »

Hello everyone,

i'm trying to implement some custom filtering but ran into a problem when applying multiple filters like so:

gridStore.filter({
	id: "filter1",
	filterBy: (record) => record.SomeProp.hasX
});

gridStore.filter({
	id: "filter2",
	filterBy: (record) => record.SomeProp.yCount === 0
});

The second filter is applied after the first one as expected but is only applied to the already filtered dataset and not the 'raw/whole dataset' (so records where 'record.SomeProp.hasX' was false are not considered when filtering for 'record.SomeProp.yCount === 0').

My Question is:
Do i need to combine these filters 'by hand' or is there a way to concatinate these filters in a custom way, give them the same base record-list to filter or 'apply both at the same time'?

thanks in advance and kind regards

Last edited by th@digi3 on Mon Apr 04, 2022 12:55 pm, edited 2 times in total.

Post by mats »

So you would like two OR filters? Then you'd need to combine them yourself yes...


Post by th@digi3 »

that's what i guess i need, thanks mats for the info :)


Post Reply