Clear selection without to click other task


Dear All!
My project need to click a button to clear selection…
but I can’t find any API to do it…
So,Pls help me

Thank you!


Hello @huiping,

You can unselect each task you want using the gantt.unselect() method.

Here is an example of usage: