Hello,
Is it possible to Attach click event on task displayed on TreeControl?
help me in any way.
Thanks in Advance,
vda
Hello,
Is it possible to Attach click event on task displayed on TreeControl?
help me in any way.
Thanks in Advance,
vda
We do something like this
PRJ_gantt = new GanttChart();
PRJ_gantt.maxWidthPanelNames = 225;
PRJ_gantt.hoursInDay = 24;
PRJ_gantt.hourInPixelsWork = PRJ_gantt.dayInPixels / PRJ_gantt.hoursInDay;
PRJ_gantt.setEditable(false);
PRJ_gantt.showDescTask(true,'n,s-f');
PRJ_gantt.addProject(project);
PRJ_gantt.create("gantt-div");
for( var i=0; i<PRJ_gantt.arrProjects[0].arrTasks.length; i++ ) {
var task = PRJ_gantt.arrProjects[0].arrTasks[i];
task.cTaskNameItem[0].task = task;
task.addEvent(
task.cTaskNameItem[0],
"mousedown",
function(event) {
var owner = event.target ? event.target : event.srcElement;
PRJ_openTicketPopup(owner.task.getId());
},
false
);
}