Cool - I will try this .... I had tried the visible="false" but I left it in 
the Layout. After further investigation I narrowed this down to the fact that I 
am using the advanced datagrid footer extensions that are available - Alex's I 
think with a couple of tweeks - and the error is in 
AdvancedDataGridBaseEx.as/protected function drawColumnBackground where var 
lastRow:Object = rowInfo[listItems.length - 1]; resolves to null and causes 
problems downstream when calculating height .... includeInLayout = false will 
be a lot easier than resolving the above ... fingers crossed.

--- In [email protected], "valdhor" <valdhorli...@...> wrote:
>
> Instead of setting height and width of a component to 0, try setting visible 
> property to false and includeInLayout property to false.
> 
> 
> --- In [email protected], "Mic" <chigwell23@> wrote:
> >
> > In an application where 8 panels exist on the screen with each panel 
> > containing a chart or an advanced datagrid (corporate dashboard), any 
> > portlet can be zoomed to fill the whole screen, and I was doing this by 
> > setting height and width of the other 5 to 0. Trying to debug the error I 
> > was getting, I discovered that if you make an AdvancedDataGrid less than 
> > about 40 (cannot remember exact cutoff) Flex gives an error of:
> > 
> > TypeError: Error #1009: Cannot access a property or method of a null object 
> > reference.
> >     at 
> > mx.controls::AdvancedDataGridBaseEx/drawColumnBackground()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:3503]
> >  etc.
> > 
> > It looks like it is too small to draw - Alice would tell it that it took 
> > the wrong pill :-)
> > 
> > Is there a way around this? TIA,
> > 
> > Mic
> >
>


Reply via email to