He is not defining the columns array, but
letting Flex do it.
The problem here is the Flex apparently
builds the columns from the xml child nodes array using a for ..in, instead of
for var i…
The for..in construct does not process the
properties in a guaranteed order, but usually returns them in LIFO order.
You should define your columns, if you
care about how they display. If you need the columns to change based on the
data, you can build them in AS. Finally, you could reverse the array, maybe
myarray.reverse?
Tracy
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jason Hawryluk
Sent: Thursday, March 02, 2006
12:03 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] The
column order in datagrid
What is your "defined" column
structure.
"your col struc here"...
-Message d'origine-
De : flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]De la part de sinacapho
Envoyé : jeudi 2 mars 2006
13:15
À : flexcoders@yahoogroups.com
Objet : [flexcoders] The
column order in datagrid
If i input a xml as
dataprovider in datagrid
aa
bb
cc
The datagrid column order will be cc, bb,aa .someone
tell me why??
thx
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Web site design development
Computer software development
Software design and development
Macromedia flex
Software development best practice
YAHOO! GROUPS LINKS
Visit your group "flexcoders" on the web.
To unsubscribe from this group, send an email to: [EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.