COPY operations arent supported in the Tree by default because the
framework cant guarantee deep copies of your objects. You'll need to
implement your own COPY logic in the DND methods (MOVE can stay the
same) including your own object copy.
HTH,
-Michael
>
> On 8/9/06 10:47 PM, "John Mazzocc
--- In flexcoders@yahoogroups.com, "sufibaba" <[EMAIL PROTECTED]> wrote:
>
> Hi All,
>
> I have a function inside of a custom Tree ItemRenderer.
>
> I would like to be able to fire this function programatically at the
> Tree's level.
>
> Any light on this is greatly appreciated.
>
> Cheers,
>
--- In flexcoders@yahoogroups.com, "sufibaba" <[EMAIL PROTECTED]> wrote:
>
> Hi Adobe Engineers,
>
> I am working quite a lot with the tree control. The problem I am
> having is that when a node is draged from a tree to another tree, the
> dropped on tree doesn't allow dropping on its first node
--- In flexcoders@yahoogroups.com, "dadrobson" <[EMAIL PROTECTED]> wrote:
>
> The XML that I am being sent is in the following format:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> When I bind xml in this format to a Tree control (labelField="@id"),
> the collection tags ( and ) mess i
Use the @ symbol for e4x attributes.
var attributeValue:* = [EMAIL PROTECTED]
Note that if the attribute doesnt exist then you'll get back an empty
XMLList.
-Michael
--- In flexcoders@yahoogroups.com, "Torben Nielsen" <[EMAIL PROTECTED]> wrote:
>
> Hi Tracy,
>
>
>
> Thank you for yo
The Flex 2 Tree control was designed with this scenario in mind. I'd
take a look at the ITreeDataDescriptor, its default impl, and the
various examples on this list and in the FDS samples.war.
Basically, you'll pass your data to the Tree as it is. Then you'll
implement your own ITreeDataDesc
I took a look and updateDisplayList is getting called due to the mouse
events, tree events, and scrolling. It seems correct but I'll verify
they are all supposed to be there.
Assuming for the moment that they are necessary, you'll probably want
to keep your drawing in UDL and add a flag in UD
I'm not exactly sure what the question is, but it seems you're asking
if changes to data pulled from the Tree will be seen in the
original data structure?
If that's what you mean, then you don't need binding, the Tree control
already uses (and returns) your data by reference. If you get a da
To replace the text of a node you can use replace();
var myXML:XML = blah;
trace("myXML:", myXML.toXMLString());
myXML.replace(0, "new node text");
trace("myXML:", myXML.toXMLString());
Output:
myXML: blah
myXML: new node text
-Michael
--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[
Post beta3, changes to XML will automatically get updated in the Tree
control. And you won't be required to go through XMLListCollection
but you can simply make changes to the XML model itself, e.g. delete,
+, appendChild, etc.
You're seeing a bug in the b3 Tree where the collection events ar
Hi Karthi,
I just posted an example descriptor a few days ago. Let me know if
you need more info.
Since you have TreeNode and a hierarchical model already implemented,
you can have your Descriptor wrap the methods on your TreeNodes, or
else you can abandon the TreeNode implementation and u
In general, you'd look at your components and their relationship with
other components. Then you can group related components into
packages, wrap them in higher level components to hide complexity, or
break them apart for more general reuse. You'll also see what
components are common to various
That's correct, dragMoveEnabled is true by default. The reason is that
Tree controls only implement MOVE operations by default and not COPY.
I'll doublecheck the docs. Thanks for posting the error.
-Michael
Flex Framework
--- In flexcoders@yahoogroups.com, "Xavi Beumala" <[EMAIL PROTECT
Does the process have permission to read/write to that location?
You might try creating the empty file (default name is flashlog.txt),
and then reverifying. You might also try explicitly setting the
filename param to something linux friendly like
TraceOutputFileName=/var/log/flash/log
HTH,
--- In flexcoders@yahoogroups.com, Jesús Iglesias <[EMAIL PROTECTED]> wrote:
>
> I have a tree width an object as dataProvider.
>
> In response a some events of my aplication I need to select one node
from the tree. The problem is I don't know how to do it.
>
> I tried
>
> treExplorer.select
--- In flexcoders@yahoogroups.com, "FineLine" <[EMAIL PROTECTED]> wrote:
>
> Hi, my first post to this list. I built a test app with Flex Builder
2 Beta
> 2 with a data update form which allows you to change the names of
nodes in a
> tree. This ActionScript code used to work to change the tree l
--- In flexcoders@yahoogroups.com, "sufibaba" <[EMAIL PROTECTED]> wrote:>> Hi Flex Team,> > Wondering if there is a working example for Beta3. The example in the> docs is not working.> > Flex 2.0 Developer's Guide > Building User Interfaces to> Flex Applications > Using Data Providers and Colle
--- In flexcoders@yahoogroups.com, "porsoc" <[EMAIL PROTECTED]> wrote:
>
> I have a string of valid XML that I want to show in a tree control. I
> can not get the tree to render my XML. All it will show me is one
> node with the entire XML string as the label.
>
> Isn't a control is suppose
--- In flexcoders@yahoogroups.com, "thunderstumpgesatwork"
<[EMAIL PROTECTED]> wrote:
>
> Hi guys,
>
> I need to set the visibility of a node (and therefore it's children)
> based on an attribute in the XML data provider.
>
> Can I capture an event and make the determination?
>
> What about
There's certainly a bug in here, but you can try replacing the
appendChild call:
> var newNodeAdded:XML = selectedNode.appendChild(newItem);
with:
selectedNode.insertChildBefore(null, newItem);
Also, I changed selectedNode to type XML from Object.
This works for me, the Tree see's th
For the record, one way to fetch tree children on demand, is to pin
the top level nodes to your Tree and then subclass the datadescriptor
getChildren.
In getChildren you'd run the service calls and return the appropriate
children.
-Michael
--- In flexcoders@yahoogroups.com, "Pat Buchanan" <
What you're doing is correct, so this is probably a bug. If we find a
workaround I'll post it.
Thanks,
-Michael
--- In flexcoders@yahoogroups.com, Teoti Graphix <[EMAIL PROTECTED]>
wrote:
>
> Hello,
>
> I am writting this more as a comment then question.
>
> I have spent 2 days experimentin
Initialize might be too early.
-M
--- In flexcoders@yahoogroups.com, "Jeremy Rottman" <[EMAIL PROTECTED]> wrote:
>
> Is there a way with in flex to auto foucs on a certain compoent upon
> initialization. I have tried the AS2 way
> Selection.setFocus("instanceName"); But this does
Maybe I missed it in there, but where's the handler for the save
action? quAdminEditList(String, String, ...)
-M
--- In flexcoders@yahoogroups.com, "Jeremy Rottman" <[EMAIL PROTECTED]> wrote:
>
> I currently have my beta app up and running. However I have ran into a
> rather odd problem.
>
> R
or
hierarchical
> data. The following sections describe the basic ICollectionView
operations
> using a list-based collection, but can also apply to similar
operations on a
> hierarchical collection."
>
> How is ICollectionView used with hierarchical data? Michael
Montagna gave a
There's a temporarily open bug in Tree that is causing items to be
inserted without the corresponding remove. This appears to be a copy,
but its really a bug in move.
For now you can delete or copy your objects by implementing your own
drag methods. dragStart and dragComplete should do the trick
It's probably a bug if isBranch is ignored in some cases and not others.
Also, there's no need to use a custom renderer in this case. The
IDataDescriptor interface allows custom implementations of the
isBranch and getChildren behavior. This allows for complicated
relationships between parents a
Hi Jonas,
The Tree control has a few new attributes and classes to take advantage
of AS3, e4x and to be generally consistent with other components like
List. For the same reasons, we've also removed the ITreeDataProvider
interface and its related classes.
Things to keep in mind when using the ne
Hi Gunnar,The Tree control no longer provides fine grained access to the nodes and node attributes of the underlying data model, instead you can use your own contract with the data directly. So if you want to read or change your data, you would do so on that data without going through the Tree
29 matches
Mail list logo