At this stage the data loading operation can be canceled, as the event is raised before the loading is to be executed. Also, the LoadingDataEventArgs event arguments provide information regarding the generated query which can be modified as well.

Cancel: Boolean property that gets or sets the value whether the event should be canceled or not.

This event provides various information and options regarding the processed query. The LoadedDataEventArgs event arguments inherit from the AsyncCompletedEventArgs and expose the properties listed below.

Cancelled: Boolean property that provides information whether an asynchronous operation has been canceled.

Entities: Gets all top-level entities that were loaded.

Error: Provides information which particular error occurred during the operation.

Through this event the submitting of the made changes can be canceled. Also, the SaveChangesOptions can be modified. The event arguments are of type DataServiceSubmittingChangesEventArgs which expose the following properties.

Cancel: boolean property that gets or sets the value whether the event should be canceled or not.

The DataServiceSubmittedChangesEventArgs also inherit from the AsyncCompletedEventArgs. As an addition to them the DataServiceResponse, HasError and IsErrorHandled properties are added as well the MarkErrorAsHandled method.

Cancelled: Boolean property that provides information whether an asynchronous operation has been canceled.

DataServiceResponse: Gets the response from the service.

Error: Provides information which particular error occurred during the operation.

Was this article helpful?

/

Give article feedback

Tell us how we can improve this article

Code samples are inaccurate / outdated.
I expected to find other / more information.
There are typos / broken links / broken page elements.
Content is inaccurate / outdated.
Other
By checking this box you consent to Progress contacting you by email about your response on this page.

Community

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.