Skip to main content
A newer version of this page is available. .
All docs
V21.1

ASPxGantt.FocusedTaskChanged Event

Occurs when you move focus between tasks.

Namespace: DevExpress.Web.ASPxGantt

Assembly: DevExpress.Web.ASPxGantt.v21.1.dll

NuGet Package: DevExpress.Web

Declaration

public event GanttFocusedTaskChangedEventHandler FocusedTaskChanged

Event Data

The FocusedTaskChanged event's data class is GanttFocusedTaskChangedEventArgs. The following properties provide information specific to this event:

Property Description
FocusedTaskKey Gets the key of the focused task.

Remarks

The server-side FocusedTaskChanged event fires if the client-side FocusedTaskChanged event’s processOnServer argument is set to true. Use the FocusedTaskChanged event to process task data when it is focused.

<dx:ASPxGantt ID="Gantt" onFocusedTaskChanged="Gantt_FocusedTaskChanged">
</dx:ASPxGantt>
protected void Gantt_FocusedTaskChanged(object sender, DevExpress.Web.ASPxGantt.GanttFocusedTaskChangedEventArgs e)
{
    if (String)e.FocusedTaskKey == "1"){
        // your code
    }
}
See Also