Skip to main content
All docs
V23.2

GanttFocusedTaskChangedEventArgs.FocusedTaskKey Property

Gets the key of the focused task.

Namespace: DevExpress.Web.ASPxGantt

Assembly: DevExpress.Web.ASPxGantt.v23.2.dll

NuGet Package: DevExpress.Web

Declaration

public object FocusedTaskKey { get; }

Property Value

Type Description
Object

The task key.

Remarks

<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