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


#1

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 .


#2

Hello,
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:
https://docs.dhtmlx.com/gantt/api__gantt_ontaskdblclick_event.html
To check if you clicked on the task row in the grid, it is better to use the built-in DOM utils:
https://docs.dhtmlx.com/gantt/api__gantt_utils_other.html
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:
http://snippet.dhtmlx.com/5/419132862