[flexcoders] Re: Tree Branch???

2008-02-21 Thread xmwang1982
great idea! thank you. --- In flexcoders@yahoogroups.com, Rafael Faria [EMAIL PROTECTED] wrote: Try to set your labelFunction to this one labelFunction = parseBranches private function parseBranches(item:XML):String { if (item.name() == folder)

[flexcoders] Re: Tree Branch???

2008-02-19 Thread Ryan Frishberg
Check out dataDescriptor. You should be able to google (or search these forums) for it and get something on how to use this feature. If not, post back. -Ryan --- In flexcoders@yahoogroups.com, xmwang1982 [EMAIL PROTECTED] wrote: Thanks Raf, However, what I need is something called

[flexcoders] Re: Tree Branch???

2008-02-19 Thread xmwang1982
Hi Ryan, Thanks. It seems data decriptor is only for reading properties, not changing. Actually I think my problem is common, for example: Folder lable=1 file name=file1.txt/ Folder lable = 1.1/ /Floder In the xml above, node named Folder should be always displayed as a branch.

RE: [flexcoders] Re: Tree Branch???

2008-02-19 Thread Jim Hayes
Subject: [flexcoders] Re: Tree Branch??? Hi Ryan, Thanks. It seems data decriptor is only for reading properties, not changing. Actually I think my problem is common, for example: Folder lable=1 file name=file1.txt/ Folder lable = 1.1/ /Floder In the xml above, node named Folder should be always

[flexcoders] Re: Tree Branch???

2008-02-19 Thread Ryan Frishberg
It is a little confusing, but dataDescriptor is not a read-only property. You can create a custom data descriptor by extending DefaultDataDescriptor (changing isBranch to what you want) and setting your Tree's dataDescriptor to that class. -Ryan --- In flexcoders@yahoogroups.com, xmwang1982

[flexcoders] Re: Tree Branch???

2008-02-19 Thread Rafael Faria
Try to set your labelFunction to this one labelFunction = parseBranches private function parseBranches(item:XML):String { if (item.name() == folder) { [EMAIL PROTECTED] = true; } return [EMAIL

[flexcoders] Re: Tree Branch???

2008-02-18 Thread xmwang1982
Thanks Raf, However, what I need is something called isBranchFunction, in which we can set isBranch property base on e.g. node name. Thanks. --- In flexcoders@yahoogroups.com, Rafael Faria [EMAIL PROTECTED] wrote: actually you can define a function to labelFunction. Check

[flexcoders] Re: Tree Branch???

2008-02-17 Thread Rafael Faria
actually you can define a function to labelFunction. Check http://blog.flexexamples.com/2007/10/29/defining-a-custom-label-function-on-a-flex-tree-control/ raf --- In flexcoders@yahoogroups.com, xmwang1982 [EMAIL PROTECTED] wrote: Hi experts, Can we determine the isBranch property of a

[flexcoders] Re: Tree branch closed on display?

2007-10-07 Thread candysmate
--- In flexcoders@yahoogroups.com, Paul Dale [EMAIL PROTECTED] wrote: expandItem or expandChildrenOf on the root would do it (with the second param set to false ...) On 10/6/07, candysmate [EMAIL PROTECTED] wrote: When my tree is first diaplayed, some of the branch nodes are expanded