Can you get dimensions via dgColumn.width and dg.headerHieght?
--- In [email protected], Mark Bradley <[EMAIL PROTECTED]> wrote: > > Thanks for the reply, but no. > > headerRenderer on DataGridColumn is a class factory object, and in > cases where I am not specifically setting it, it is null (but actually > rendered using the default DataGridItemRenderer). > > I actually need the instance so I can get it's dimensions. > > Thanks, > > -Mark > > On Jan 17, 2008, at 1:06 PM, Sherif Abdou wrote: > > > > > can;t u just do col.headerRenderer > > ----- Original Message ---- > > From: Mark Bradley <[EMAIL PROTECTED]> > > To: [email protected] > > Sent: Thursday, January 17, 2008 1:01:41 PM > > Subject: [flexcoders] DataGridColumn headerRenderer instance > > > > Greetings all, > > > > Can anyone tell me how to access the visible headerRenderer instance > > given a DataGridColumn instance? > > > > public function getVisibleHeaderRen derer( col:DataGridColumn ): > > Object { > > var grid:DataGrid = this; > > > > // somehow get the header renderer (if it is visible) > > return ?? > > } > > > > I'm really stuck here, but I know there has got to be a way! I can do > > it if I have a MouseEvent on the column header itself, but how can I > > get it without an event? > > > > I've also tried DataGrid.getMeasuri ngRenderer, passing in the > > DataGridColumn instance (and true) and I do not get back the correct > > renderer (I actually get back the last header renderer). > > > > Any help? > > > > Thanks! > > > > -Mark > > > > > > > > > > Looking for last minute shopping deals? Find them fast with Yahoo! > > Search. > > > > >

