Multiselect tasks and subtasks (checkbox)

Hi everyone!

When I click on a checkbox of parent task, it should select all subtasks.
If one of the subtasks is not selected, it should deselect the parent task (other subtasks remain selected)
Also i need a main checkox in header which select/deselect all tasks.

To put it simply it should works like a checkbox column in MUI xgrid for example.

How i can do this?

Hello Ruslan,
You need to implement a custom solution for that. To do that, you need to iterate the child task and parent tasks.
Here is an example of how it can be implemented:
https://snippet.dhtmlx.com/xqrj6ztp

If you also want to select tasks, you need to add additional logic for selecting and unselecting them:
https://snippet.dhtmlx.com/9r6mc7l2

1 Like