SpreadJS Documentation
SelectionChanging Event
The sheet that triggered the event.
The sheet's name.
The old selection ranges.
The new selection ranges.
Occurs when the selection of cells on the sheet is changing.
Syntax
var instance; // Type: Events
instance.SelectionChanging = function(sheet, sheetName, oldSelections, newSelections) { };
SelectionChanging = function ( 
   sheet : Sheet,
   sheetName : string,
   oldSelections : Array,
   newSelections : Array
) { };

Parameters

sheet
The sheet that triggered the event.
sheetName
The sheet's name.
oldSelections
The old selection ranges.
newSelections
The new selection ranges.
Example
This example uses the SelectionChanging event.
$("#spreadContainer").data("spread").getActiveSheet().bind(GcSpread.Sheets.Events.SelectionChanging, function (e, info) {    
//Use IE to see console
        console.log("Name (" + info.sheetName + ")");
});
See Also

Reference

Events type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.