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)
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
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.
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
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
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
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
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
--- 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
9 matches
Mail list logo