richSelectFilter with object values

Hi,

I’m trying to filter a datatable with a header filter (richSelectFilter) where the data set contain an object for this value.

Dataset :
[
{id:1, user:{id:1, firstname:‘Gérard’, lastname:‘Majax’}, year:2020},
{id:2, user:{id:2, firstname:‘Jean’, lastname:‘Bombeur’}, year:2020},
{id:3, user:{id:3, firstname:‘Joséphine’, lastname:‘Ange gardien’}, year:2021},
{id:4, user:{id:4, firstname:‘Gaston’, lastname:‘Lagaf’}, year:2020},
{id:5, user:{id:5, firstname:‘Blop’, lastname:‘Inet’}, year:2021},
],

column on which the filter apply : user

We are working with Webix 6.x, but the problem also occur with most recent versions.

There is only one value collected in the richSelectFilter.

Here a demo of the bug :
https://snippet.webix.com/hhvi6hfs

There is a way to have a richSelectFilter collecting all expected objects ?

Thanks

Hi, @Fabien
check this
https://snippet.webix.com/1gt9yy5o

Amazing, didn’t know about onCollectValues event.
Thanks