Back to Devexpress

ASPxClientGantt.CallbackError Event

aspnet-js-aspxclientgantt-f0f032f3.md

latest2.3 KB
Original Source

ASPxClientGantt.CallbackError Event

Fires on the client if any server error occurs during server-side processing of a callback sent by the ASPxClientGantt.

Declaration

ts
CallbackError: ASPxClientEvent<ASPxClientCallbackErrorEventHandler<ASPxClientGantt>>

Event Data

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

PropertyDescription
handledGets or sets whether the event is handled and the default error handling actions are not required.
messageGets the error message that describes the server error that occurred.

Remarks

Use the CallbackError event to respond to a server error occurring as a result of a callback processed on the server side. For example, you can display an explanatory text or an image related to the error.

Web Forms:

aspx
<dx:ASPxGantt ID="Gantt" ClientInstanceName="clientGantt" >
    <ClientSideEvents CallbackError="function(s, e) {
        // your code
    } />
</dx:ASPxGantt>

MVC:

cshtml
@Html.DevExpress().Gantt(settings => {
    settings.Name = "gantt";
    settings.ClientSideEvents.CallbackError = "function (s, e) { // your code }";
    ...
}).Bind(
    GanttDataProvider.Tasks, GanttDataProvider.Dependencies, 
    GanttDataProvider.Resources, GanttDataProvider.ResourceAssignments
).GetHtml()

Concept

See Also

Callbacks

ASPxGantt - Overview

MVCxGantt - Overview

ASPxGantt - 'How To' Examples

MVCxGantt - 'How To' Examples

ASPxClientGantt Class

ASPxClientGantt Members