hi there, i have some problems with a tree . as i am a user of linux i tested this only in firefox.. so this is my tree LOMS Creation Tools 1.0 User Manual:: File Format: PDF/Adobe Acrobat - View as HTMLThe Question Tree Panel of the newly created Questionnaire Model only contains the root You can now build the Questionnaire Model by adding new groups, http://www.loms-itea.org/deliverables/LOMS_D4.2_userManual_v1.21.pdfHOME | ExtJs Extender Controls - Issue Tracker:: Hi, My TreePanel only show root node and with a leaf icon! advanced samples showing how to add or remove a tab dynamically and how to expand a node. http://www.codeplex.com/ExtJsExtenderControl/WorkItem/List.aspx?ViewAll=trueHOME |
mostWantedTree = new Ext.tree.TreePanel({
animate:true,
loader: new Ext.tree.TreeLoader(),
lines:false,
autoScroll:false,
border: false,
expanded:true,
root: new Ext.tree.TreeNode()
});
i create this tree on load of the document. for the purpose of functionality in my portal i need to be able to add to this tree nodes and leafs after it has been rendered.i am playing in the JS console in firefox for two days now and. i am now able doing thismostWantedTree.getRootNode().appendChild({text :'muie',leaf:true}); to change the icon of the root which initially looks like a leaf to look like a folder with the expand icon. but if i expande it, it looks like it's expanded but it doesn't render it's childrens. PLEASEEEEEEEEEEE does anyone KNOW HOW I CAN ADD DINAMICALLY A LEAF TO A TREE..PLEASEEEEEEEEEEE.. i'm going nutz here.. this tree it's being rendered in a layout acordion. i have tried combinationd of collapse render childre collapseAll, expandAll, etc.. please HELP SHORT TERM TODO: ---------------- radu: do something like :: Jul 6 08:36:37 EST 2000 radu: dynamically get available EPM groups radu: web change . radu: treepanel radu: statspanel radu: prefs radu: properties . http://www.cs.sunysb.edu/~sion/internships/IBM-2000/wsdemo/done.txtHOME | DataBasix:: File Format: Microsoft Powerpoint - View as HTMLDatabase Metadata Tree Panel. Dynamically generated Cross- Reference List Context menu helps build diagram by listing tables connected by foreign key to http://home.telkomsa.net/brandrock/DataBasix.ppsHOME |
thanx Cadu de Castro Alves, but fortunately for me and for others who i've been bugging for some time now i have found out on my own the solution. and this is
RssNewsLayout.getRecTree().getRootNode().childNode s[0].appendChild(new Ext.tree.TreeNode({text:'Http://nustiuce.com',leaf:true})) while i've been doing this RssNewsLayout.getRecTree().getRootNode().childNode s[0].appendChild({text:'Http://nustiuce.com',leaf:true})..seems Chapter 1. The Extension Points of The Meta-Environment:: File Format: PDF/Adobe Acrobat - View as HTMLPreferably, the share the configuration, build and install interface of Can (dynamically) load new jars into the virtual machine of the MetaStudio GUI. http://www.meta-environment.org/doc/books//meta-environment/extending-meta-environment/extending-meta-environment.pdfHOME | r559 | bjh | 2008-11-11 06:08:45 +1000 (Tue, 11 Nov 2008) | 2 :: Fix display of a tree panel when using the menu to change the non-current panel to tree view mode. Simplify treeFullPath() function. http://silk.apana.org.au/ChangeLog.txtHOME |
that declaring that the child you are passing is actually a tree node makes the layout understand and takes the necesary actions and renders it properly..
You have to use AsyncTreeNode to do it.
Try it:
var treeNav = new Tree.TreePanel({
autoScroll: true,
containerScroll: true,
rootVisible: false,
border: false,
animate: false,
lines: false,
loader: new Tree.TreeLoader(),
root: new Tree.AsyncTreeNode({
text: 'Navigation Menu',
iconCls: 'x-tree-node-icon',
children: [{
text: 'Aplicação',
expanded: true,
children: [{
text: 'Filtragem de Aplicações',
expanded: true,
children: [{
text: 'Regras de Filtragem',
id: 'filter-rules',
leaf: true,
listeners: {
'click': Ext.appFilterRules.init
}
}, {
text: 'Filtros de Aplicações',
id: 'app-filter',
leaf: true,
listeners: {
'click': Ext.appFilter.init
}
}]
}, {
text: 'Proxy Messenger',
expanded: true,
children: [{
text: 'Gerenciamento de Usuários',
id: 'user-management',
leaf: true,
listeners: {
'click': Ext.userManagement.init
}
}, {
text: 'Tipo de Serviço',
id: 'service-type',
leaf: true,
listeners: {
'click': Ext.serviceType.init
}
}, {
text: 'Mensagens',
id: 'messages',
leaf: true,
listeners: {
'click': Ext.messages.init
}
}]
}, {
text: 'Proxy Socks',
id: 'proxy-socks',
iconCls: 'x-tree-node-expanded',
leaf: true,
listeners: {
'click': Ext.proxySocks.init
}
}, {
text: 'Proxy WWW',
expanded: true,
children: [{
text: 'Geral',
id: 'proxy-www-general',
leaf: true,
listeners: {
'click': Ext.proxyGeneral.init
}
}, {
text: 'Cliente de Autenticação',
id: 'auth-client',
leaf: true,
listeners: {
'click': Ext.authClient.init
}
}, {
text: 'Controle de Conteúdo',
id: 'content-control',
leaf: true,
listeners: {
'click': Ext.contentControl.init
}
}]
}]
}, {
text: 'Configuração do Firewall',
expanded: true,
children: [{
text: 'Nat',
expanded: true,
children: [{
text: 'Nat',
id: 'nat',
leaf: true,
listeners: {
'click': Ext.nat.init
}
}, {
text: 'Balanceamento de Link',
id: 'link-balancing',
leaf: true,
listeners: {
'click': function(node) {
Msg.alert('Mensagem', 'O módulo ' + this.text + ' ainda não foi implementado.');
}
}
}]
}, {
text: 'Regras de Filtragem',
leaf: true,
listeners: {
'click': function(node) {
Msg.alert('Mensagem', 'O módulo ' + this.text + ' ainda não foi implementado.');
}
}
}]
}]
})
});
I got this from my app because I'm busy right now and don't have time do explain it in details.
Best regards!
Nortel Unveils Vision, Strategy for Israeli High-Performance Net
Busy Friday Leads to Strong Close for Net Stocks |