SpreadJS Documentation
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 : Sheet,
   newSheet : Sheet,
   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(GcSpread.Sheets.Events.ActiveSheetChanging, function (sender, args) {
    //Cancel sheet switching.
    args.cancel = true;
});
See Also

Reference

Events type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.