Yes i did.

Before setting the labelFunctions i tried that and it worked
perfectly. The point is when i copy the labelFunction


--- In [email protected], "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Did you set variableRowHeight=true on the PrintDataGrid?
> 
>  
> 
> ________________________________
> 
> From: [email protected]
> [mailto:[EMAIL PROTECTED] On Behalf Of dmiramontesval
> Sent: Wednesday, February 28, 2007 4:45 PM
> To: [email protected]
> Subject: [flexcomponents] Question about PrintDataGrid
> 
>  
> 
> Hello i am printing a datagrid whose columns have a fixed size and
> some of them have labelFunctions.
> 
> When i create my PrintDataGrid i need to set its columns as well so i
> am using a loop like this to set them (as suggested by Alex Harui in
> message 1059):
> 
> var clonedcolumns:Array = [];
> //clone the columns
> for (var i:int; i < columns.length; i++)
> {
> var dgc:DataGridColumn = new DataGridColumn();
> dgc.dataField = columns[i].dataField;
> dgc.headerText = columns[i].headerText;
> dgc.width = columns[i].width;
> dgc.resizable = columns[i].resizable;
> clonedcolumns.push(dgc);
> }
> 
> dataGridToPrint.columns = clonedcolumns;
> 
> The thing is what should i do if a column has a labelFunction? how can
> i clone a column like that?
> 
> I tried this:
> dgc.labelFunction = columns[i].labelFunction;
> 
> Also I am setting the wordWrap and variableRowHeight properties both
> to true (because this columns displays a long value), but the result
> is that the columns that have a labelFunction display its data cut
> horizontally(incomplete), that means that the variableHeight and
> wordWrap properties are not working properly.
> 
> So how can i clone this columns and have its data displayed correctly?
>


Reply via email to