With all Flex data-driven controls, you must work with the dataProvider.
You can not use the control, because the row item renderers are re-used
when the list is scrolled or the data changes.

 

Loop over the dataProvider. If you are using xml, then the dataProvider
is either an XMLList or an XMLListCollection.  Both allow for iterating.

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Michel Scoz
Sent: Sunday, May 20, 2007 3:17 PM
To: [email protected]
Subject: [flexcoders] Getting datagrid current data

 

Hi all...

 

I have a datagrid that is populated with a XML... this datagrid has a
drag and drop feature and it works fine. But I need to pass through all
the datagrid items, get their respective IDs and save this order on a
database.

 

I just dont know how to pass through all the datagrid items to get their
current order and get those IDs... can anyone give me a little help on
how to do this? I've been trying for 2 hours without a clue =(

 

Thank you very much!

 

Michel.

 

Reply via email to