PDA

View Full Version : Extjs4.0 treePanel style



seamas
13 Mar 2012, 3:43 AM
32705


the above sreenshot is my treePanel, my first question is
how to hidden the title "Menu",
I used hidden attribute, that will hidden whole treePanel.
the following is my local code

var tree = Ext.create('Ext.tree.Panel', {
height: 500,
width: '100%',
store:userTreeStore,
rootVisible:false,
renderTo: 'navcontainer',
columns: [{
xtype: 'treecolumn',
text : 'Menu',
flex : 1,
//hidden: true,
dataIndex: 'menuLabel'
}]
});

I have another question

How to set first level menus style(Text1, Text2,....) , let them looks like an accordian Panel

Thank you so much

mitchellsimoens
13 Mar 2012, 6:00 AM
Moved to the Ext JS 4 Q&A forum.

willsun52000
13 Mar 2012, 6:28 PM
set text : ''

seamas
14 Mar 2012, 7:38 PM
is there any person can help me about treepanel accordion(:|

seamas
15 Mar 2012, 11:43 PM
repeate my question, how to chang special node style?

khmurach
16 Mar 2012, 2:40 AM
Hide header http://ext4all.com/post/panel-hide-header
Style header http://ext4all.com/post/how-to-change-the-treepanel-any-panel-title-style

khmurach
16 Mar 2012, 3:48 AM
Tree looks like an accordion http://ext4all.com/post/extjs-4-treepanel-style

seamas
16 Mar 2012, 3:58 AM
Hi Khmurach,
you are great, is the first live node(home work) support onClick Event?


Best regard
Seamas

khmurach
16 Mar 2012, 4:28 AM
Yes, it is normal node (support all events) with custom style.
You can add listener to treepanel:


listeners: {
itemclick: function (v, r) {
Ext.Msg.alert('Item clicked', 'You click on ' + r.data.text);
}
}

seamas
19 Mar 2012, 1:33 AM
How can i click just once time to expand frist level menu

khmurach
19 Mar 2012, 3:01 AM
Demo here http://ext4all.com/post/extsj-4-tree-single-click-expand

seamas
20 Mar 2012, 12:28 AM
Hi my friend Khmurach

You are great guy ,your sample always useful and clearly.

I have finished my work about tree menus.

Best Regards

Seamas

khmurach
20 Mar 2012, 1:06 AM
Thank you, Seamas!
Not at all! Have a nice coding :)

seamas
27 Jul 2012, 1:40 AM
Hi khmurach
How are you , Could you please refer to following link to help me ?

http://www.sencha.com/forum/showthread.php?233250-Extjs4.0-Grid-render-issue&p=862069#post862069

Seamas

seamas
31 Jul 2012, 7:54 PM
Please look into this topic

http://www.sencha.com/forum/showthread.php?234542-ExtJs-static-conten-%28.js-.css%29-cache&p=864711#post864711

seamas