SpreadJS Documentation
Using Edit Mode Always

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(GcSpread.Sheets.Events.EnterCell, function (event, data) {
                var sheet = data.sheet;
                activeSheet.startEdit(false);
            });

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.