解决方案 »

  1.   


    那可有人知道如何获取一个树的一个节点的html?
      

  2.   

    哎用火狐神器f12,终于知道如何做了:.x-tree-checkbox-halfchecked {
        background-position: 26px 0px;
    }
    listeners: {
        checkchange: function(n,s,eOpts){
            var checkbox = Ext.query("*[data-recordid="+n.internalId+"]")[0].getElementsByTagName('input')[0];
            checkbox.className = " x-tree-checkbox x-tree-checkbox-halfchecked";  //半选
            // checkbox.className = " x-tree-checkbox x-tree-checkbox-checked"; //勾选
            // checkbox.className = " x-tree-checkbox"; //不选
        }
    }