Results 1 to 3 of 3

Thread: AsyncTreeNode after reload ,can't expand!

  1. #1
    Sencha User
    Join Date
    Jan 2008
    Location
    ZhuHai GD CN
    Posts
    20

    Default

    dear all:

    is AsyncTreeNode after reload ,can't expand!

    i add a child node in [COLOR=

  2. #2

  3. #3
    Sencha User
    Join Date
    Jan 2008
    Location
    ZhuHai GD CN
    Posts
    20

    Default

    问题解决了。。我在Load AsyncTreeNode 时指定了leaf ,所以要把父节点也reload.不然原来的节点状态还是子节点

    Code:
    //刷新树目录
    var ParNode=treeNode.parentNode;
    //更新父目录的Leaf状态
    ParNode.reload();
    ParNode.expand(false,true,function(node){
        //获取并展开原子目录
        var OleNode=node.findChild('id',treeNode.id);
        OleNode.expand(false,true,function(node){
               //选中新添加项并刷新Grid
              var NewNode=OleNode.findChild('id',obj.responseText);
              //NewNode.ui.highlight("#FFF18B", { attr: 'color', duration: 2 });	
             treeNode=NewNode;
             strNodeID=NewNode.id;
             strNodeName=NewNode.text;
             NewNode.select();
       });
     });
    希望可以帮到大家解决类似的问题。。。老外看不懂就好好学习Chinese

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •