All docs
V20.2
21.2
21.1
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.
A newer version of this page is available. Switch to the current version.

ASPxGantt.FocusedTaskChanged Event

Occurs when you move focus between tasks.

Namespace: DevExpress.Web.ASPxGantt

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

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