Hi everyone, I have the folowing script that adds the % symbol:

public function dataGridPercent(item:Object, column:DataGridColumn):String
{
        var str:String = item[column.dataField];
        return str + "%";
}

This works fine but it breaks my "export to excel" script. I'm thinking because 
the value is now a string. How can I keep the value as a DataGridColumn but add 
the "%" symbol ?

The following doesn't work:

public function dataGridPercent(item:Object, 
column:DataGridColumn):DataGridColumn 
{
        var str:String = item[column.dataField];
        return DataGridColumn(str + "");
}

Thanks.

-David

Reply via email to