Spread for ASP.NET 7.0 Product Documentation
onEditStart
See Also Support Options
Spread for ASP.NET 7.0 Product Documentation > Client-Side Scripting Reference > Scripting Members > Events > onEditStart

Glossary Item Box

Occurs when the user begins to edit a cell.

Syntax

[Inline HTML]

<ELEMENT onEditStart = "handler" ...>

[Event Property]

FpSpread1.onEditStart = handler

[Named Script]

<SCRIPT FOR=FpSpread1 EVENT=onEditStart>

Arguments

event.cell
Cell
event.row
Row index
event.col
Column index
event.cancel
Whether to cancel editing
event.spread
Spread that raises the event

Return Type

None

Remarks

This event is triggered when cell editing is started. To cancel the editing, you can set the argument event.cancel to true.

Example

This is a sample that contains the event. On the client side, the script that contains the event would look like this:

JavaScript Copy Code
<SCRIPT language=javascript>
   function startSpreadEdit() {
      window.status = "Edit start " + event.cell.outerHTML;
      
      // Lock second row.
      if (FpSpread1.ActiveRow==1) event.cancel = true;
   }
</SCRIPT>

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.