а

Hiding resources in resource grid


#1

Hi
About some customization of resource grid - my resources list is really extense. It would be really useful if I could hide resources from resource grid, only showing the ones I already allocated in any task of the grid.
Do we have this option?


#2

Hello Diego,
Gantt uses the smart rendering feature for the resource view.
The resources outside the viewport are not rendered:


In the following snippet, you can click on the Change resources button and Gantt will load 567 resources. Then you can compare how it works with more resources:
https://snippet.dhtmlx.com/d97e23a70

If you really want to hide the resources without tasks, you can create a parent element and add a function that will check all resources. If a resource doesn’t have any assigned task, it will be moved under the no_tasks parent that can be collapsed.
Here is an example of how it might be implemented:
https://snippet.dhtmlx.com/f6a38fb71