Spread for ASP.NET 10 Product Documentation > Client-Side Scripting Reference > Scripting Members > Events > EditStart |
Occurs when the user begins to edit a cell.
[Inline HTML]
<ELEMENT EditStart = "handler" ...>
[JavaScript]
FpSpread1.addEventListener("EditStart", handler, ...)
or
FpSpread1.onEditStart = handler
None
This event is triggered when cell editing is started. To cancel the editing, you can set the argument event.cancel to true.
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> |