OpenSwing Framework:: is based on the class org.openswing.swing.tree.client.TreePanel which derives (ActionListener listener) – add an ActionListener to listener events fired http://oswing.sourceforge.net/gui3.htmlHOME | How can i add a listener on expanding a node in a treePanel,
I made :
var tree = new Tree.TreePanel({ Ext.Viewport - FAN의 환상마을 - 야후! 블로그:: xtype: treepanel, width: 200, autoScroll: true, split: true, loader: new Ext.tree.TreeLoader listeners: { click: function(n) http://kr.blog.yahoo.com/adoria74/1004.htmlHOME |
el:'tree-div',
title : 'Catgories',
useArrows:true,
autoScroll:true,
animate:true,
enableDD:true,
containerScroll: true,
width: 200,
// auto create TreeLoader
dataUrl: 'http://silex2/bodytech3/xml/getcat.php?action=getCatTree', Gwadanina Rss Items by Sanjiv Jivan:: GWT-Ext on the other hand will continue to grow and expand with other library GWT-RPC call and build a TreePanel yourself by iterating over the returned data. http://gwadanina.net/rss/author/Sanjiv_Jivan/HOME |
style : 'margin-right:5px;font-size:18px;',
root: {
nodeType: 'async',
text: 'Catgories',
draggable:false,
id:'source' php.doc.cvs: cvs: doc-editor / TODO index.php /js main.js main_min.js :: extension, - bodyBorder: false, - listeners: { - scope: this, - render: expand(); var t = FilePath.split(/); - function GoToNode(node, scope) http://news.php.net/php.doc.cvs/4097HOME |
},
listeners:
{
click: function(node)
{
alert(node.attributes.id);
},
expand: function(node)
{
alert(node.attributes.id);
}
}
});
Clicking is working but not expand.
What's wrong?
up
Nevermind, the event is called "expandnode", it's working now...
Nortel Unveils Vision, Strategy for Israeli High-Performance Net
Busy Friday Leads to Strong Close for Net Stocks
|