[flexcoders] Re: sorting a datagrid column with an itemrenderer

2009-09-18 Thread valdhor
Use a sortCompareFunction (http://livedocs.adobe.com/flex/3/langref/mx/controls/dataGridClasses/DataGridColumn.html#sortCompareFunction) --- In flexcoders@yahoogroups.com, kpjj31 joe.g.ja...@... wrote: How would I go about sorting a datagrid taht has one column. This column has an item

[flexcoders] Re: sorting a datagrid column with an itemrenderer

2009-09-18 Thread turbo_vb
Man, I have to ask, how did you come up with a custom DataGridColumn component solution, that uses an inline itemRenderer? You're not doing anything crazy with the headerRenderer, so why not just create a custom itemRenderer instead? -TH --- In flexcoders@yahoogroups.com, valdhor

[flexcoders] Re: Sorting on Datagrid

2009-03-13 Thread ross_w_henderson
Poornima, Can you give a little more information? Are you using any item renderers? Ross

[flexcoders] Re: Sorting a datagrid by column in a numeric way...?

2005-10-07 Thread yaagcur
I use this function. I think it was from this list function sortGrid(a, b, index) { var result; var field; var field = yourDataGrid.columns[index].columnName; var i1 = a[field]; var i2 = b[field];