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
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.
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
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
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.
>>[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
>
6 matches
Mail list logo