Erik:

I tried to set creationPolicy="all" on a DataGrid but creationPolicy 
is not a valid attribute for DataGrid. I have creationPolicy="all" 
set on the parent container, but it does not help on the DataGrid.

I am using Flex 2.01, if that matters.

Paul

--- In [email protected], EECOLOR <[EMAIL PROTECTED]> wrote:
>
> In Flex, if a UI component has not been displayed, it has not yet 
measured
> it's size. This is what happens with the DataGrid as well. You 
could set the
> creationPolicy to "all" and wait for the creationComplete event 
before you
> retrieve the column widths and height.
> 
> 
> Greetz Erik
> 
> 
> On 5/16/08, aceoohay <[EMAIL PROTECTED]> wrote:
> >
> > I have written a bit of code that generates the xml needed to 
display
> > an Excel Workbook with multiple worksheets. I have created a 
tabbed
> > panel with 5 different grids one per panel.
> >
> > One of the features of the spreadsheet class is to grab the width 
of
> > each column and create the same size column in Excel, this works 
well,
> > except if the grid has not been displayed. In other words every 
tab
> > that you display, the coresponding grid widths convert to Excel 
fine,
> > the ones that you have not clicked get the data properly, but the 
sizes
> > are very small, but not all the same size.
> >
> > To get the size of the column I use;
> >
> > Math.ceil(dg.columns[i].width)
> >
> > Any clues as to what might be going on, or better yet how to 
solve it?
> >
> > Paul
> >
>


Reply via email to