Back to Devexpress

ASPxGantt.FocusedTaskChanged Event

aspnet-devexpress-dot-web-dot-aspxgantt-dot-aspxgantt-de08b869.md

latest2.1 KB
Original Source

ASPxGantt.FocusedTaskChanged Event

Occurs after you moved focus between tasks.

Namespace : DevExpress.Web.ASPxGantt

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

NuGet Package : DevExpress.Web

Declaration

csharp
public event GanttFocusedTaskChangedEventHandler FocusedTaskChanged
vb
Public Event FocusedTaskChanged As GanttFocusedTaskChangedEventHandler

Event Data

The FocusedTaskChanged event's data class is GanttFocusedTaskChangedEventArgs. The following properties provide information specific to this event:

PropertyDescription
FocusedTaskKeyGets 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 after it is focused.

aspx
<dx:ASPxGantt ID="Gantt" onFocusedTaskChanged="Gantt_FocusedTaskChanged">
</dx:ASPxGantt>
csharp
protected void Gantt_FocusedTaskChanged(object sender, DevExpress.Web.ASPxGantt.GanttFocusedTaskChangedEventArgs e)
{
    if (String)e.FocusedTaskKey == "1"){
        // your code
    }
}

See Also

ASPxClientGantt.GetFocusedTaskKey

ASPxClientGantt.SetFocusedTaskKey(key)

ASPxGantt Class

ASPxGantt Members

DevExpress.Web.ASPxGantt Namespace