onTaskClick event is fired when user clicks on a Task item.
One parameter is passed to the handler:
ganttChartControl.attachEvent("onTaskClick", function(task){ alert("Task with Id = " + task.getId() + " is clicked."); });