[flexcoders] A bug? Drag n Drop between 2 DataGrids, target is databound... to grid 3

2006-10-26 Thread iko_knyphausen



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 adragged 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, thedragged row has been "forgotten".
As for the databinding assumeXML read from HTTPService (default result format):
groupsgroupnameGroup1/nameusersusernameJohn/nameemail[EMAIL PROTECTED]/email/userusernameJane/nameemail[EMAIL PROTECTED]/email/user/users/groupgroupnameGroup2/nameusersusernameJack/nameemail[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 
   
 

  




__,_._,___



RE: [flexcoders] A bug? Drag n Drop between 2 DataGrids, target is databound... to grid 3

2006-10-26 Thread Tracy Spratt












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 dont
even recall the 2.0 package it is in offhand. Im sure you will find a
more detailed response if you search the archive.



Tracy











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of iko_knyphausen
Sent: Thursday, October 26, 2006
3:01 AM
To: flexcoders@yahoogroups.com
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 adragged 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,
thedragged row has been forgotten.

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

groups
group
nameGroup1/name
users
user
nameJohn/name
email[EMAIL PROTECTED]/email
/user
user
nameJane/name
email[EMAIL PROTECTED]/email
/user
/users
/group
group
nameGroup2/name
users
user
nameJack/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 
   
 

  




__,_._,___






RE: [flexcoders] A bug? Drag n Drop between 2 DataGrids, target is databound... to grid 3

2006-10-26 Thread Iko Knyphausen














I could not make the data binding work with just
converting the HTTPService.lastResult toArray...its probably a little
more involved, however, you sent me off to the right direction: Changing the
resultFormat of my dataProviders to e4x did the trick  as long
as dropSource and dropTarget both have e4x as dataProviders it
works just fine. Thanks. -Iko







From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tracy Spratt
Sent: Thursday, October 26, 2006
9:58 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] A bug?
Drag n Drop between 2 DataGrids, target is databound... to grid 3













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 dont
even recall the 2.0 package it is in offhand. Im sure you will
find a more detailed response if you search the archive.



Tracy













From: [EMAIL PROTECTED]ups.com
[mailto:[EMAIL PROTECTED]ups.com]
On Behalf Of iko_knyphausen
Sent: Thursday, October 26, 2006
3:01 AM
To: [EMAIL PROTECTED]ups.com
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
adragged 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, thedragged row has
been forgotten.

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

groups
group
nameGroup1/name
users
user
nameJohn/name
email[EMAIL PROTECTED]/email
/user
user
nameJane/name
email[EMAIL PROTECTED]/email
/user
/users
/group
group
nameGroup2/name
users
user
nameJack/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 
   
 

  




__,_._,___