Filter resources gantt

Is there a way to filter resources and not delete the selected ones? …

Example problem video: https://forum.dhtmlx.com/uploads/default/original/2X/e/e699586e9af1cadb85c893b0ee5bbb9f1af5c638.mp4

Hello Dan,
I couldn’t reproduce the issue in the official sample:
https://docs.dhtmlx.com/gantt/samples/11_resources/09_resource_histogram.html
https://files.dhtmlx.com/30d/88e11298dfc8f9140b7610f36366bcbf/vokoscreen-2021-06-10_14-02-02.mkv
I would suspect that it is related to the falsy value you have in the resource filter, but that is also not reproduced.

If you have a Gantt version that is older than 7.0.12, you need to update Gantt:
https://docs.dhtmlx.com/gantt/whatsnew.html#7012

If you can reproduce the issue in the newer version, probably, it is related to the Gantt configuration, but it is hard to suggest what might be wrong as I don’t see your code.
In that case, please, add your configuration in the following snippet and make sure that the issue is reproduced there:
https://snippet.dhtmlx.com/38ee1b370
Then, click on the Share button and send me the link.
Or send me a ready demo with all the necessary Javascript and CSS files so that I can reproduce the issue locally.

I can not share the code because it is a lot, it is not that simple …

I was reviewing the examples they have with version 7.0.12 (https://docs.dhtmlx.com/gantt/samples/05_lightbox/13_resources.html) and the behavior is the same, is there a configuration or some event that I am missing?

Hello Dan,
Thank you for the clarification. I was able to reproduce the issue in the sample and added it to our internal bug tracker. The dev team will fix it in the future, but I cannot give you any ETA.

As a workaround, you need to enter the resource value (even 0 would be OK), then you can clear the filter.

1 Like