ASPxClientGantt.CallbackError Event
Fires on the client if any server error occurs during server-side processing of a callback sent by the ASPxClientGantt.
Declaration
CallbackError: ASPxClientEvent<ASPxClientCallbackErrorEventHandler<ASPxClientGantt>>
Event Data
The CallbackError event's data class is ASPxClientCallbackErrorEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
handled | Gets or sets whether the event is handled and the default error handling actions are not required. |
message | Gets 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:
<dx:ASPxGantt ID="Gantt" ClientInstanceName="clientGantt" >
<ClientSideEvents CallbackError="function(s, e) {
// your code
} />
</dx:ASPxGantt>
MVC:
@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