Spread for ASP.NET 8.0 Product Documentation > Client-Side Scripting Reference > Scripting Members > Events > onEditStart |
Occurs when the user begins to edit a cell.
[Inline HTML]
<ELEMENT onEditStart = "handler" ...>
[Event Property]
FpSpread1.onEditStart = handler
[Named Script]
<SCRIPT FOR=FpSpread1 EVENT=onEditStart>
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 language=javascript> function startSpreadEdit() { window.status = "Edit start " + event.cell.outerHTML; // Lock second row. if (FpSpread1.ActiveRow==1) event.cancel = true; } </SCRIPT> |