ASPxClientGanttTaskEventArgs Class
Provides data for the TaskClick and TaskDblClick events.
Declaration
declare class ASPxClientGanttTaskEventArgs extends ASPxClientCancelEventArgs
Remarks
Web Forms:
<dx:ASPxGantt ID="Gantt" >
<ClientSideEvents
TaskClick="function(s, e) {
if (e.key == 5) {
//...
e.cancel = true;
}
}"
TaskDblClick="function(s, e) {
if (e.key == 10) {
//...
e.cancel = true;
}
}"
/>
</dx:ASPxGantt>
MVC:
@Html.DevExpress().Gantt(settings => {
settings.Name = "gantt";
settings.ClientSideEvents.TaskClick = "function (s, e) {
if (e.key == 5) {
//...
e.cancel = true;
}
}";
settings.ClientSideEvents.TaskDblClick = "function (s, e) {
if (e.key == 10) {
//...
e.cancel = true;
}
}";
...
}).Bind(
GanttDataProvider.Tasks, GanttDataProvider.Dependencies,
GanttDataProvider.Resources, GanttDataProvider.ResourceAssignments
).GetHtml()
Concepts
Inheritance
ASPxClientEventArgs
ASPxClientCancelEventArgs
ASPxClientGanttTaskEventArgs
See Also