回复 2楼noahark的帖子
nonahark 你好,
前台添加 Spread 前台事件方法如下:
- <script type="text/javascript">
- window.onload = function () {
- var ss = document.getElementById("FpSpread1");
- ss.addEventListener("ActiveCellChanged", onActiveCellChanged, false);
- ss.addEventListener("EditStart", onEditStart, false);
- ss.addEventListener("EditStopped", onEditStop, false);
- }
- function onActiveCellChanged(event) {
- // Row changed
- // event.row doesn't work in FireFox
- alert(event.row);
- }
- function onEditStart(event) {
- alert("EditStart");
- }
- function onEditStop(event) {
- alert("EditStoped");
- }
- </script>
复制代码 |