JavaScript

afterGridSubmit

Arguments

eobject

An object passed to the event that contains the following properties:

hasErrorsboolean

Indicates whether or not any issues were encountered when saving data to the Grid component's data source. If true, an error occurred. Otherwise, false.

Description

Fires after the user has submitted edits to the Grid Part and the server has processed the data.

Discussion

The afterGridSubmit client side event is called after the server has finished processing submitted changes. If an error occurred while saving the data, the e.hasErrors parameter will be set to true. This event can be used to perform additional actions after the grid has been saved, such as display a message indicating that records were successfully saved to the data source.

if (!e.hasErrors) {
    var title = "Changes Saved";
    var message = "All changes have been saved.";
    var buttons = "o";
    var onClose = function () {};

    A5.msgBox.show(title,message,buttons,onClose);
}