[Flashcoders] Datagrid sorting

2007-03-15 Thread Merrill, Jason
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 d

[Flashcoders] Datagrid Sorting

2006-08-11 Thread Brandon Krakowsky/MTC
I have a datagrid populated with a dataprovider. I add items to the dataprovider with the following type of statement: dataprovider.addItem({u:{label:clearUser, role:clearRole}, uState:clearState, sel:false, data:l}); I can sort according to "uState" no problem with the following: dataprovider.

RE: [Flashcoders] Datagrid sorting

2007-03-15 Thread Pete Miller
16 PM >> To: flashcoders@chattyfig.figleaf.com >> 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 d

RE: [Flashcoders] Datagrid sorting

2007-03-15 Thread Derek Lords
ECTED]> To: > flashcoders@chattyfig.figleaf.com> 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 sortin

Re: [Flashcoders] Datagrid sorting

2007-03-15 Thread Bojil Vassilev
You should add a listener to the DataGrid and then sort the dataprovider. Here is a quick example, also sorting both ways Asc<>Desc (keeping track if a column is sorted one way and sorting it the other way next time) myDataGrid.addColumn("Product"); myDataGrid.addColumn("Quality"); myDataGrid.

RE: [Flashcoders] Datagrid sorting

2007-03-16 Thread Merrill, Jason
>>[mailto:[EMAIL PROTECTED] On Behalf >>Of Bojil Vassilev >>Sent: Thursday, March 15, 2007 4:50 PM >>To: flashcoders@chattyfig.figleaf.com >>Subject: Re: [Flashcoders] Datagrid sorting >> >>You should add a listener to the DataGrid and then sort the >