Aras Innovator Platform

Events

You can add and remove Events using the “on” and “off” public methods.

Each event listener callback accepts a single parameter: an event object of the type “CustomEvent” containing a “detail” property with specific event information.

Note
Column and row indexes are zero-based. Row indexing starts from the first row displayed in a grid and ends at the bottom row of the entire grid. It means that rows whose parents are collapsed/invisible are not counted. The column indexing starts from the first column on the left. All invisible rows and columns have an index of -1.

addRow

Event fired after each row is added to the grid when adding rows using the “addRows” or “loadData” methods.

Table 5: Property details for addRow

NameTypeDescription
rowIdStringID of the added row.
parentIdStringID of the parent row. Null if added row is root.

addRows

Event fired after all rows are added using the “addRows” or “loadData” methods.

Table 6: Property details for addRows

NameTypeDescription
rowIdsArrayAdded row IDs.
parentIdStringID of the parent row. The ID is Null if the added row is root.

removeRow

Event fired after deleting a row from the grid using the “removeRow” method. Table 7: Property details for removeRow

Name Type Description
rowIdsArrayIDs of the deleted rows. Array contains ID of the deleted row and IDs of all descendant rows.
parentIdStringID of the parent row. The ID is Null if the deleted row is a root row.

removeAllRows

Event fired after deleting all rows from the grid using the “removeAllRows” method. Table 8: Property details for removeRows

NameTypeDescription
rowIdsArrayIDs of the deleted rows.

addColumn

Event fired after adding a new column using the “addColumn” or “loadData” methods. Table 9: Property details for addColumn

NameTypeDescription
columnNameStringColumn name.

removeColumn

Event fired after deleting a column using the “removeColumn” method. Table 10: Property details for removeColumn

NameTypeDescription
columnNameStringColumn name.