Double click task, lightbox show in chart and not show in grid


when I double click task,lightbox is showed,but I want it just showed when I double click task in chart,when I double click task in grid lightbox not showed,how to do it .


You can use the onTaskDblClick event handler that will fire after you double-click on the task element in the timeline and the task row in the grid:
To check if you clicked on the task row in the grid, it is better to use the built-in DOM utils:
If you return false in the onTaskDblClick event handler, Gantt won’t open the lightbox.

Here is an example of how it might be implemented: