All docs
V20.2
21.2 (EAP/Beta)
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.

ASPxClientGantt.FocusedTaskChanged Event

Occurs when a task is focused.

Declaration

FocusedTaskChanged: ASPxClientEvent<ASPxClientGanttFocusedTaskChangedEventHandler<ASPxClientGantt>>

Event Data

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

Property Description
key Returns the task key.
processOnServer Specifies whether or not to process the event on the server. Inherited from ASPxClientProcessingModeEventArgs.
values Returns the task data.

Remarks

Use the FocusedTaskChanged event to process data when a task is focused. Set the processOnServer property to true to fire the server-side FocusedTaskChanged event and process task data on the server.

Run Demo

<dx:ASPxGantt ID="Gantt" >
    <ClientSideEvents FocusedTaskChanged="onGanttFocusedTaskChanged" ... />
</dx:ASPxGantt>
function onGanttFocusedTaskChanged(s, e) {
    if (e.key == 0) {
        ...
        e.processOnServer = true;
    }
}

Related APIs:

Concepts

See Also