# Events and Cancellation

> Subscribe to workbook events with onChange and events.on, cancel before-events, pass AbortSignal or CancellationToken and handle Razor and Angular events.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Sheet Control > Spreadsheet Editor > Events and Cancellation
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/events/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/events/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/events/llms-full.txt

---

## On This Page

- [Subscribe to Workbook Events](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/events/#subscribe-to-workbook-events)
- [How Before-Events and After-Events Work](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/events/#how-before-events-and-after-events-work)
- [Cancel Long-Running Operations](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/events/#cancel-long-running-operations)
- [Handle Events in Razor and Angular](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/events/#handle-events-in-razor-and-angular)
- [Keep Handlers Small](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/events/#keep-handlers-small)
- [Next Steps](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/events/#next-steps)

---

## Nearby

- **Previous:** [Batch Updates, Undo and Redo](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/undo-redo/llms.txt)
- **Next:** [Spreadsheet Documents](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/llms.txt)
