This sounds like it may have to do with the Flash Players difficulty differentiating between an array with a single element and and object.  Look up the utility function toArray().  Sorry I don’t even recall the 2.0 package it is in offhand.  I’m sure you will find a more detailed response if you search the archive.

 

Tracy

 


From: [email protected] [mailto:[email protected]] On Behalf Of iko_knyphausen
Sent: Thursday, October 26, 2006 3:01 AM
To: [email protected]
Subject: [flexcoders] A bug? Drag n Drop between 2 DataGrids, target is databound... to grid 3

 

I have 2 datagrids with identical dataFields. The dropTarget is databound to a third dataGrid. The only thing I did to enable drag and drop is to set the dropEnabled and dragEnabled properties to true - no code so far.

Dragging and dropping works like a charm, almost... When the target grid (which is databound) has 2 or more rows (before dropping row 3), the data binding seems to work and be remembered, i.e. when you change the selectedIndex of the databound source and come back later, the newly dropped row is still there.  If you do the same with the dropTarget grid having one or zero rows (before dropping a dragged row), the new row drops fine and gets displayed in the grid, but the databinding fails. In other words, if you do the same as described before, change the data source selectedIndex, and come back, the dragged row has been "forgotten".

As for the databinding assume XML read from HTTPService (default result format):

<groups>
<group>
<name>Group1</name>
<users>
<user>
<name>John</name>
<email>[EMAIL PROTECTED]</email>
</user>
<user>
<name>Jane</name>
<email>[EMAIL PROTECTED]</email>
</user>
</users>
</group>
<group>
<name>Group2</name>
<users>
<user>
<name>Jack</name>
<email>[EMAIL PROTECTED]</email>
</user>
</users>
</group>
...

So in the above data example, dragging another user into Group1 works fine and the data has 3 users, draging another user into Group2 works on the UI at first, but does not update the data.

I know this weird, but I promise, I am not making this up ;-) Any ideas what the reason(s) could be? Thanks a bunch...

-Iko

 

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to