Skip to main content
A newer version of this page is available. .
All docs
V20.2

GanttFocusedTaskChangedEventArgs.FocusedTaskKey Property

Gets the key of the focused task.

Namespace: DevExpress.Web.ASPxGantt

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