Back to Devexpress

ASPxClientGantt.ResourceDeleted Event

aspnet-js-aspxclientgantt-e103e7c2.md

latest2.5 KB
Original Source

ASPxClientGantt.ResourceDeleted Event

Occurs after a user deleted a resource.

Declaration

ts
ResourceDeleted: ASPxClientEvent<ASPxClientGanttResourceDeletedEventHandler<ASPxClientGantt>>

Event Data

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

PropertyDescription
keySpecifies the resource key.
valuesSpecifies the resource values.

Remarks

Use the ResourceDeleted event to process resource data when the resource is deleted.

Run Demo: ASPxGantt - Client-Side EventsRun Demo: MVCxGantt - Client-Side Events

Web Forms:

aspx
<dx:ASPxGantt ID="Gantt" >
    <ClientSideEvents ResourceDeleted="function(s, e) {
        if (e.values["ResourceID"] == 1) {
            //...
        }
    }" />
</dx:ASPxGantt>

MVC:

cshtml
@Html.DevExpress().Gantt(settings => {
    settings.Name = "gantt";
    settings.ClientSideEvents.ResourceDeleted = "function (s, e) { 
        if (e.values["ResourceID"] == 1) {
            //...
        } 
    }";
    ...
}).Bind(
    GanttDataProvider.Tasks, GanttDataProvider.Dependencies, 
    GanttDataProvider.Resources, GanttDataProvider.ResourceAssignments
).GetHtml()

Concepts

See Also

ASPxClientGantt.DeleteResource

ASPxGantt - Overview

MVCxGantt - Overview

ASPxGantt - 'How To' Examples

MVCxGantt - 'How To' Examples

ASPxClientGantt Class

ASPxClientGantt Members