SpreadJS Documentation
getInsertRows Method
Gets the inserted row collection.
Syntax
var instance = new GcSpread.Sheets.Sheet(name);
var value; // Type: Array
value = instance.getInsertRows();
function getInsertRows() : Array;

Return Value

The inserted rows.

The following values can be returned:

row.row number type Specifies row index.
row.item object type Specifies data item of the row.
Example
This example gets the inserted rows.
activeSheet.getRow(0).backColor("Red");
activeSheet.setValue(0, 0, "value");
activeSheet.addRows(0, 1);

$("#button1").click(function () {

             var insertRows = activeSheet.getInsertRows();
            var len = insertRows.length;
            for(var i = 0; i < len; i++){
                var r = insertRows[i];
             alert("rowIndex:" + r.row);       
}        
   });

// Add button control to page
<input type="button" id="button1" value="button1"/>
See Also

Reference

Sheet type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.