GridView.Edited

Syntax

Edited: function(sender, args, timeout);

Parameters

sender. Event source.

args. Event information.

timeout. Time delay (milliseconds) after which the event occurs.

Description

The Edited event occurs after table data is edited.

Example

To execute the example, the HTML page must contain the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component) and with the loaded table in the express report workspace.

 Process and fire the StructureChanged and Edited events. Load resources file, specify the list of styles and load the styles:

// Get express report table
var grid = expressBox.getDataView().getGridView();
// Process the Edited event
grid.Edited.add(function (sender, args, timeout) {
    console.log("The Edited event is initialized");
});
// Process the StructureChanged event
grid.StructureChanged.add(function (sender, args, timeout) {
    console.log("The StructureChanged event is initialized");
});
// Fire the processed events
grid.Edited.fire(this);
grid.StructureChanged.fire(this);
// Load resources file
grid.loadFile("../resources/resources.ru.js");
// Determine loading styles
var styles = PP.CSSPath + "settings.css;" + PP.CSSPath + "PP.css";
grid._FileStyles = styles;
// Load styles
grid.loadFiles();

After executing the example resources and style files are loaded, and the table formatting is changed. The browser console informs that the processed events have been fired:

The Edited event is initialized

The StructureChanged event is initialized

See also:

GridView