Spread for ASP.NET 12 Product Documentation
EditStart
Spread for ASP.NET 12 Product Documentation > Client-Side Scripting Reference > Scripting Members > Events > EditStart

Occurs when the user begins to edit a cell.

Syntax

[Inline HTML]

<ELEMENT EditStart = "handler" ...>

[JavaScript]

FpSpread1.addEventListener("EditStart", handler, ...)

or

FpSpread1.onEditStart = handler

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 type="text/javascript">
   function startSpreadEdit(event) {
      window.status = "Edit start " + event.cell.outerHTML;
      
      // Lock second row.
      if (FpSpread1.ActiveRow==1) event.cancel = true;
   }
</script>
See Also