?
Solved

Flex DataGrid:  How can I access the data it contains in the order it is displayed

Posted on 2009-07-08
1
Medium Priority
?
304 Views
Last Modified: 2012-05-07
I have a simple flex datagrid.
I have set dragEnabled = true, dragMoveEnabled=true and dropEnabled=true.
My users can now drag rows up and down to arrange them in the order they like.
I need to save the order they have selected, so I can arrange the rows in this way the next time they login.

How can I loop through the datagrid and get the data element name  (e.g. the value of data in dg column1) of each item of data being displayed, in the order that it has been arranged.
0
Comment
Question by:asim_uk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
asim_uk earned 0 total points
ID: 24803140
Turns out dragging the rows actually changes their order in the dataProvider, so:

for each( var row:Object in dgTeamKPI.dataProvider ) {
    kpiOrder = kpiOrder + row.KPI_ID +"," ;
}

Stores the user selected order in kpiOrder.
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
The top devops trends for 2017 are focused on improved deployment frequency, decreased lead time for change and decreased MTTR.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question