Solved

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

Posted on 2009-07-08
1
295 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
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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…
A safe way to clean winsxs folder from your windows server 2008 R2 editions
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

762 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

10 Experts available now in Live!

Get 1:1 Help Now