PDA

View Full Version : customize treeNode attributes



wguo
17 Jun 2009, 11:54 PM
Now I have a problem about the treeNode attribute. I need customize a treeNode whose attribtues are not the general such as id,text but just like id,name. How should I do ?

18 Jun 2009, 3:55 AM
each node stores its original config in the TreeNode.attributes object.

wguo
19 Jun 2009, 12:08 AM
Ok! Thanks!

Now,I have another problem. When reconfiguring the grid, the pagingBar need rebind the newStore , my sovlution is gird.bbar.store = newStore, but it not works. Can anyone give me a tip?

Animal
19 Jun 2009, 12:21 AM
http://extjs.com/deploy/dev/docs/?class=Ext.PagingToolbar&member=bind

wguo
19 Jun 2009, 1:01 AM
Thanks , Animal. I had read another answer you replied (http://extjs.com/forum/showthread.php?t=70729). Now I had done it. You are great.

wguo
22 Jun 2009, 1:51 AM
each node stores its original config in the TreeNode.attributes object.
Now , I have another question: how should I use the TreeNode.attributes. Before createNode? I hope you give me a tip!