Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

You can set the cell to always be in edit mode when the user clicks on it.  Normally the user types or double-clicks before the cell goes into edit mode.
Set the startEdit method in the EnterCell event to cause the cell to go into edit mode as soon as the user clicks on or uses tab or enter to move to the cell.
If the selectAll parameter in the startEdit method is set to true, then it selects all the text when the text is changed during editing.
Using Code
This example puts the cell in edit mode when the user clicks on it.

JavaScript

Copy Code

spread.bind(GC.Spread.Sheets.Events.EnterCell, function (event, data) {                var sheet = data.sheet;                activeSheet.startEdit(false);            });

 

  • No labels