大师,请教2个问题:
1、虚表的通过定义var tree = {0,1,1,1,1,1,1,0,1,1,1,0,1,1,1} 这个表来标识上下级关系。数据少的话很少很方便。
如果有几十条甚至上百条数据,我想弄个文件,读取到表里加载,如何实现? "[@treeLevel]"=tree[2] 是表示层级关系的吗?
2、虚表中能否只指定某一行某列绑定下拉框或按钮之类的?如下图:
感谢!
var tree = {0,1,1,1,1,1,1,0,1,1,1,0,1,1,1}
var t = {
{"读操作(00)","","", "[@treeLevel]"=tree[1]}
{"写操作(01)","","", "[@treeLevel]"=tree[2]}
{"控制操作(02)","","", "[@treeLevel]"=tree[3]}
}
winform.lsvC.setTable(t,false);
winform.lsvC.refreshTree();
winform.lsvC.tree.show = true