Filter resources that have work

Hi all,
My resource store contains all the resources which is the expected behavior in order to select them in the lightbox.
But, on the Resource Grid, I would like to only display the resources that have work. not all.
How could I acheive that ?
Regards

1 Like

Hello,
You can filter resources with the onFilterItem event handler:
https://docs.dhtmlx.com/gantt/api__gantt_datastore_other.html#onFilterItem

If you return false, the resource is not displayed.

Here is an example of how it can be implemented:
https://snippet.dhtmlx.com/i6htahic

1 Like