Back to Devexpress

ASPxClientGantt.SetFocusedTaskKey(key) Method

aspnet-js-aspxclientgantt-dot-setfocusedtaskkey-x28-key-x29.md

latest1.5 KB
Original Source

ASPxClientGantt.SetFocusedTaskKey(key) Method

Sets the focused task.

Declaration

ts
SetFocusedTaskKey(
    key: any
): void

Parameters

NameTypeDescription
keyany

The task’s key.

|

Remarks

The key should have the same format as used in the data source field.

aspx
<dx:ASPxGantt ID="Gantt" runat="server" ClientInstanceName="clientGantt" >
    //...
</dx:ASPxGantt>
js
clientGantt.SetFocusedTaskKey("1");

Concepts

See Also

GetFocusedTaskKey

FocusedTaskChanging

FocusedTaskChanged

ASPxGantt - Overview

MVCxGantt - Overview

ASPxGantt - 'How To' Examples

MVCxGantt - 'How To' Examples

ASPxClientGantt Class

ASPxClientGantt Members