Results 1 to 5 of 5

Thread: Treeview Problem. Please help

  1. #1

    Post Treeview Problem. Please help

    I created one tree panel.I created the child nodes for that tree when i click the child nodes ,i need to open the page say default.aspx,In which event i can write this.

    Please help me.

  2. #2
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246

  3. #3

    Default i am not getting the alert when i click the node of the tree. Please let me know

    var treePanel=new Ext.tree.TreePanel({
    id:'templateTree',
    title: 'Templates',
    region: 'west',
    split: true,
    border: true,
    width: 225,
    minSize: 175,
    maxSize: 400,
    collapsible: true,
    margins:'0 0 5 5',
    cmargins:'0 5 5 5',
    rootVisible:false,
    lines:false,
    autoScroll:true,
    root: new Ext.tree.TreeNode('Template Viewer'),
    collapseFirst:true,
    autoLoad:false
    });

    treePanel.tplTree = treePanel.root.appendChild(
    new Ext.tree.TreeNode({
    text:'My Templates',
    cls:'feeds-node',
    expanded:true
    })
    );

    var node = new Ext.tree.TreeNode(
    {
    text:'Commission Inquiry',
    leaf:true,
    url: '10001',
    listeners: {
    click: function () {alert();
    }
    }
    }
    );
    treePanel.tplTree.appendChild(node);

  4. #4
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246

    Default

    I meant the click event of the treepanel.

  5. #5

    Default

    Thanks .

Posting Permissions

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