Skip to main content
All docs
V23.2

ASPxClientGanttResourceAssignedEventArgs.key Property

Specifies the resource assignment key.

Declaration

key: any

Property Value

Type Description
any

The resource assignment key.

Remarks

Web Forms:

<dx:ASPxGantt ID="Gantt" >
    <ClientSideEvents ResourceAssigned="function(s, e) {
        if (e.key == 1) {
            //...
        }
    }" />
</dx:ASPxGantt>

MVC:

@Html.DevExpress().Gantt(settings => {
    settings.Name = "gantt";
    settings.ClientSideEvents.ResourceAssigned = "function (s, e) { 
        if (e.key == 1) {
            //...
        }
    }";
    ...
}).Bind(
    GanttDataProvider.Tasks, GanttDataProvider.Dependencies, 
    GanttDataProvider.Resources, GanttDataProvider.ResourceAssignments
).GetHtml()
See Also