Skip to main content
All docs
V25.1
  • GanttFocusedTaskChangedEventArgs.FocusedTaskKey Property

    Gets the key of the focused task.

    Namespace: DevExpress.Web.ASPxGantt

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