Skip to main content
All docs
V24.1

ASPxGantt.FocusedTaskChanged Event

Occurs after you moved focus between tasks.

Namespace: DevExpress.Web.ASPxGantt

Assembly: DevExpress.Web.ASPxGantt.v24.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 after 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