SpreadJS Documentation
getDeleteRows Method
Gets the deleted row collection.
Syntax
var instance = new GcSpread.Sheets.Sheet(name);
var value; // Type: Array
value = instance.getDeleteRows();
function getDeleteRows() : Array;
Example
This example gets the deleted rows.
activeSheet.setValue(0, 0, "The 1st row", GcSpread.Sheets.SheetArea.viewport);
activeSheet.setValue(1, 0, "The 2st row", GcSpread.Sheets.SheetArea.viewport);
activeSheet.setValue(2, 0, "The 3st row", GcSpread.Sheets.SheetArea.viewport);
activeSheet.deleteRows(1, 1);

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

 var deleteRows = activeSheet.getDeleteRows();
            var len = deleteRows.length;
            for (i = 0 ; i < len; i++) {
                var d = deleteRows[i];
             alert("rowIndex:" + d.row);       
}        
   });

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

Reference

Sheet type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.