DataTree 的Recursive Level 在绑定的Dataset刷新之后,界面上的DataTree 不会自动重构。需要在绑定的Dataset的afterFlushData事件之后添加如下代码:
datasetActor.disableControls(); try { datasetActor.moveFirst(); while (!datasetActor.isLast()) { var node = new RecordTreeNode(datasetActor.getCurrent(), treeActor.getTreeLevel("levelActor")); treeActor.addRootNode(node); datasetActor.moveNext(); } } finally { datasetActor.enableControls(); }