Solved

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

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
check for non negative number 2 442
[HELP PLEASE] -- calc columns in datagrid 13 475
learning partner 1 215
Adobe Flex - Combobox - Disable Editing 15 766
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…
Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

867 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now