Control the task visibility on the gantt chart based on user

Hi,

We would like to control the display of the tasks on the gantt chart based on certain logic,like only the created user should be able to see the tasks.Which event will be the best place to handle this scenario.

Thanks in Advance for any inputs on this.

Hello,
usually you control it on server site, at the data loading stage. You filter tasks based on some criteria before output them to the client.
If you want to do it on the client-side, you can use this event
docs.dhtmlx.com/gantt/api__gantt … event.html