Back to Devexpress

ASPxClientGanttFocusedTaskChangedEventArgs Class

aspnet-js-aspxclientganttfocusedtaskchangedeventargs.md

latest2.1 KB
Original Source

ASPxClientGanttFocusedTaskChangedEventArgs Class

Contains data for the FocusedTaskChanged event.

Declaration

ts
declare class ASPxClientGanttFocusedTaskChangedEventArgs extends ASPxClientProcessingModeEventArgs

Remarks

Run Demo: ASPxGantt - Client-Side EventsRun Demo: MVCxGantt - Client-Side Events

Web Forms:

aspx
<dx:ASPxGantt ID="Gantt" >
    <ClientSideEvents FocusedTaskChanged="function(s, e) {
        if (e.key == 0) {
            ...
            e.processOnServer = true;
        }
    }" />
</dx:ASPxGantt>

MVC:

cshtml
@Html.DevExpress().Gantt(settings => {
    settings.Name = "gantt";
    settings.ClientSideEvents.FocusedTaskChanged = "function (s, e) { 
        if (e.key == 0) {
            ...
            e.processOnServer = true;
        }       
    }";
    ...
}).Bind(
    GanttDataProvider.Tasks, GanttDataProvider.Dependencies, 
    GanttDataProvider.Resources, GanttDataProvider.ResourceAssignments
).GetHtml()

Concepts

Inheritance

ASPxClientEventArgs ASPxClientProcessingModeEventArgs ASPxClientGanttFocusedTaskChangedEventArgs

See Also

ASPxGantt - Overview

MVCxGantt - Overview

ASPxGantt - 'How To' Examples

MVCxGantt - 'How To' Examples

ASPxClientGanttFocusedTaskChangedEventArgs Members