找回密码
 立即注册

QQ登录

只需一步,快速开始

swejet 悬赏达人认证 活字格认证
论坛元老   /  发表于:2016-12-5 23:06  /   查看:2935  /  回复:3
SpreadJS绑定树形??还有如何判断当前编辑的单元格?

3 个回复

倒序浏览
dexteryao讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2016-12-6 08:28:52
沙发
树形您可以参考下
http://demo.gcpowertools.com.cn/spreadjs/doublecolor_treegrid/

判断当前单元格的什么?
如果是想获取当前单元格可以用 getActiveRowIndex 和getActiveColumnIndex获取到行列值
  var sheet = spread.getActiveSheet();
     alert("Row index of an active cell : " + sheet.getActiveRowIndex() + "\n" +
         "Column index of an active cell: " + sheet.getActiveColumnIndex());
回复 使用道具 举报
swejet悬赏达人认证 活字格认证
论坛元老   /  发表于:2016-12-6 23:46:59
板凳
http://demo.gcpowertools.com.cn/spreadjs/doublecolor_treegrid/
1、这个树形怎么才能默认是关闭状态呢?没找到这项配置。
2、怎么获得当前修改的单元格位置及数据??
回复 使用道具 举报
dexteryao讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2016-12-7 14:21:10
地板
1. expand方法是设置折叠的,第一个参数是leave
sheet.rowRangeGroup.expand(1, false)
2.
sheet.getValue(sheet.getActiveRowIndex(), sheet.getActiveColumnIndex())
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部