The onRowClick event is fired when the user clicks a task row header of the Gantt Chart, before the default action (specified by the rowClickHandling property).
The default action can be canceled by calling args.preventDefault().
dp.onRowClick = function(args) { alert("Clicked: " + args.task.id()); };