aspnet-devexpress-dot-web-dot-aspxgantt-dot-aspxgantt-de08b869.md
Occurs after you moved focus between tasks.
Namespace : DevExpress.Web.ASPxGantt
Assembly : DevExpress.Web.ASPxGantt.v25.2.dll
NuGet Package : DevExpress.Web
public event GanttFocusedTaskChangedEventHandler FocusedTaskChanged
Public Event FocusedTaskChanged As GanttFocusedTaskChangedEventHandler
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. |
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
ASPxClientGantt.GetFocusedTaskKey