Are you using a ArrayCollection as a dataprovider?

 

James

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of darvon4u
Sent: Monday, February 05, 2007 9:43 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] drag/drop question

 

We're trying to re-rank the collection for datagrid after the user
re-orders the items with drag/drop.

here is an example. before:

1 a
2 b
3 c

now, supposedly we drag item 1 to the last place. we want to rerank it
so the first column still shows the order (line #), while the
collection has been changed.

after:

1 b
2 c
3 a

we have tried everything to get it to work. it just doesn't sort
properly. what i need to do is renumber AFTER EVERYTHING (all the
drag/drop events have been triggered). tried to do this in
dragcomplete or dragdrop handlers, to no avail.

Does anybody have any ideas? spent like 3 days on this, any help would
be truly appreciated!

Thanks,
-A

 

Reply via email to