Spread.Sheets Documentation
endEdit Method
If set to true, does not apply the edited text to the cell.
Stops editing the active cell.
Syntax
var instance = new GC.Spread.Sheets.Worksheet(name);
var value; // Type: boolean
value = instance.endEdit(ignoreValueChange);
function endEdit( 
   ignoreValueChange : boolean
) : boolean;

Parameters

ignoreValueChange
If set to true, does not apply the edited text to the cell.

Return Value

true when able to stop cell editing successfully; otherwise, false.
Example
This example removes the text "123" when typing in a cell.
activeSheet.bind(GC.Spread.Sheets.Events.EditChange, function (sender,args) {
                if (args.editingText === "123") {
                    activeSheet.endEdit(true);
                }
            });
See Also

Reference

Worksheet type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.