The taskClickHandling property (string) specifies the default action performed by the JavaScript Gantt Chart when the user clicks a task box.
Declaration
DayPilot.Gantt.taskClickHandlingPossible Values
"Enabled"- task clicking is enabled, related events are fired, and no default action is performed."Disabled"- task clicking is disabled."PostBack"- fires theTaskClickevent on the server side (ASP.NET WebForms)."CallBack"- fires theTaskClickevent on the server side (ASP.NET WebForms, ASP.NET MVC, Java only)"Bubble"- opens a task bubble."ContextMenu"- opens a task context menu."Edit"- activates inline task editing."Select"- selects the task.
Default Value
"Enabled"Examples
JavaScript
const gantt = new DayPilot.Gantt("dp", {
taskClickHandling: "ContextMenu",
// ...
});
gantt.init();Angular
<daypilot-gantt [config]="config"></daypilot-gantt>config: DayPilot.GanttConfig = {
taskClickHandling: "ContextMenu",
// ...
};React
<DayPilotGantt
taskClickHandling="ContextMenu"
{/* ... */}
/>Vue
<DayPilotGantt
taskClickHandling="ContextMenu"
<!-- ... -->
/>See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot