Is dataProvider.sortOn a proper method?  Do you want
dataProvider.sortItemsBy instead?

P.

>> -----Original Message-----
>> From: [EMAIL PROTECTED] [mailto:flashcoders-
>> [EMAIL PROTECTED] On Behalf Of Merrill, Jason
>> Sent: Thursday, March 15, 2007 1:16 PM
>> To: [email protected]
>> Subject: [Flashcoders] Datagrid sorting
>> 
>> Need some help on sorting a datagrid by a particular collumn. Right
now,
>> it's sorting alphabetically by data in the second collumn instead of
the
>> first.  I tried sorting the dataprovider first with the array sort
>> methods, but they didn't work and the help docs indicate those array
>> sorting methods don't work on associative arrays.
>> 
>> I have tried:
>> 
>>      lobAdmins_dg.dataProvider.sortOn("lob", Array.DESCENDING);
>> 
>> and also with the DataSetIterator:
>> 
>>      lobAdmins_dg.dataProvider.addSort("lobSort", "lob",
>> DataSetIterator.Descending);
>> 
>> and:
>> 
>>      lobAdmins_dg.dataProvider.addSort("lobSort", ["lob"],
>> DataSetIterator.Descending);
>> 
>> and then setting the dataprovider to the datagrid. (lob is the name
of
>> the datagrid collumn and also the property/field in the dataprovider
I
>> want to sort on alphabetically.
>> 
>> Also searched help docs, Adobe and Google but no luck.  Any ideas?
>> 
>> Jason Merrill
>> Bank of America
>> Global Technology & Operations
>> Learning & Leadership Development
>> eTools & Multimedia Team
>> 
>> 
>> _______________________________________________
>> [email protected]
>> To change your subscription options or search the archive:
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>> 
>> Brought to you by Fig Leaf Software
>> Premier Authorized Adobe Consulting and Training
>> http://www.figleaf.com
>> http://training.figleaf.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to