//官方推荐
this.getModuleGrid().getRootNode().cascadeBy(function () {
            this.set("checked", false);
            if (ids.indexOf(this.data["Id"].toString()) > -1) {
                this.set("checked", true);
            }
        });

//通过Children方式
GetChilds: function (idArray, node) {
        ts = this;
        childnodes = node.childNodes;
        Ext.each(childnodes, function () {
            var nd = this;
            idArray.push(nd.getId());
            if (nd.hasChildNodes()) {
                ts.GetChilds(idArray, nd);
            }
        });
    }

//根据ID获取Node
var node=treepanel.getNodeById(node_id);
    // treepanel.expandPath(node.getPath())
    treepanel.getSelectionModel().select(node)

 

相关文章:

  • 2021-12-28
  • 2022-12-23
  • 2021-05-29
  • 2021-12-15
  • 2022-12-23
  • 2022-02-01
猜你喜欢
  • 2022-12-23
  • 2021-12-25
  • 2021-07-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案