SpreadJS 14
Frequently Used Events / Use Events when Edit Mode Starts or Stops
In This Topic
    Use Events when Edit Mode Starts or Stops
    In This Topic

    You can use events when edit mode starts or stops.

    Using Code

    This example uses the EditStarting and EditEnded events.

    JavaScript
    Copy Code
    var spread = 
    new GC.Spread.Sheets.Workbook(document.getElementById("ss"),
    {sheetCount:3});
    
    var activeSheet = spread.getActiveSheet();
    activeSheet.bind(GC.Spread.Sheets.Events.EditStarting, function (sender, args) 
    {  
        console.log("Start cell editing.");
    });
    
    activeSheet.bind(GC.Spread.Sheets.Events.EditEnded, function (sender, args) 
     {
        console.log("Finish cell editing.");
     });
    
    See Also

    Developer's Guide