onTaskMultiSelect

fires after the task selection state has changed (the task has been selected/unselected)

void onTaskMultiSelect(string|number id,boolean state,Event e){ ... };

Parameters

idstring|numberthe id of a task
statebooleantrue if the task has been selected, false - if unselected
eEventa native event object

Example

gantt.attachEvent("onTaskMultiSelect", function(id, state, e){
    // some logic here
});

Details

This event is defined in the ext/dhtmlxgantt_multiselect.js extension, so you need to include it on the page. Read the details in the Multi-Task Selection article.

The event is called for each task of the range.

See also
Back to top