SpreadJS 13
GC.Spread.Sheets Namespace / Events type / TableRowsChanged Event
The sheet that triggered the event.
The table which is insert/delete rows.
The operation name which trigger event.
The index of the starting row to insert/delete based on table index.
The number of rows to insert/delete.
Whether insert rows before the specified row index or after. By default is false, insert before.
The deleted rows collection in binding. The every item in array specifies deleted data item.
In This Topic
    TableRowsChanged Event
    In This Topic
    Occurs when the user insert/delete rows in table.
    Syntax
    var instance; // Type: Events
    instance.TableRowsChanged = function(sheet, table, propertyName, row, count, isAfter, deletedItem) { };
    TableRowsChanged = function ( 
       sheet : Worksheet,
       table : table,
       propertyName : string,
       row : number,
       count : number,
       isAfter : boolean,
       deletedItem : undefined
    ) { };

    Parameters

    sheet
    The sheet that triggered the event.
    table
    The table which is insert/delete rows.
    propertyName
    The operation name which trigger event.
    row
    The index of the starting row to insert/delete based on table index.
    count
    The number of rows to insert/delete.
    isAfter
    Whether insert rows before the specified row index or after. By default is false, insert before.
    deletedItem
    The deleted rows collection in binding. The every item in array specifies deleted data item.
    Example
    //This example uses the TableRowsChanged event.
    window.onload = function(){
         var spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"));
         var activeSheet = spread.getActiveSheet();
         spread.bind(GC.Spread.Sheets.Events.TableRowsChanged, function (e, data) {});
    }
    See Also

    Reference

    Events type