Solved

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

Posted on 2009-07-08
1
301 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
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

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

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…
Enabling the Skype for Business Meeting Scheduler in Hybrid OWA
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

680 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