webform中有一个客户端事件ClientEvents-SelectionChanged,
设置
ClientEvents-SelectionChanged="selectionchanged"
然后设置JS代码
- function selectionchanged(e) {
- var rg = e.spread.GetSelectedRange();
- console.log("selected " + rg.type + ", " + rg.row + ", " + rg.col + ", " + rg.rowCount + ", " + rg.colCount);
- }
复制代码
|