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
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
Poornima,
Can you give a little more information?
Are you using any item renderers?
Ross
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];
4 matches
Mail list logo