SpreadJS Documentation
ActiveSheetChanging Event
GC.Spread.Sheets Namespace > Events type : ActiveSheetChanging Event
The old sheet.
The new sheet.
A value that indicates whether the operation should be canceled.
Occurs when the user is changing the active sheet.
Syntax
var instance; // Type: Events
instance.ActiveSheetChanging = function(oldSheet, newSheet, cancel) { };
ActiveSheetChanging = function ( 
   oldSheet : Worksheet,
   newSheet : Worksheet,
   cancel : boolean
) { };

Parameters

oldSheet
The old sheet.
newSheet
The new sheet.
cancel
A value that indicates whether the operation should be canceled.
Example
This example stops the active sheet from changing.
spread.bind(GC.Spread.Sheets.Events.ActiveSheetChanging, function (sender, args) {
    //Cancel sheet switching.
    args.cancel = true;
});
See Also

Reference

Events type