Custom Views and Filters


we would like to allow users of the gantt to filter their gantt view by custom fields and save these views to reuse them. How can we achieve this?


Hello John,
You can filter tasks by using the onBeforeTaskDisplay event handler:

Here are examples of how it works:

However, Gantt is a client-side tool. It doesn’t save any data in the database or somewhere else. You need to manually save the Gantt configuration and the variable values that will define how the tasks are filtered.