just set the visibile property on it i would think
----- Original Message ---- From: rueter007 <[EMAIL PROTECTED]> To: flexcoders@yahoogroups.com Sent: Friday, January 18, 2008 2:07:14 PM Subject: [flexcoders] Re: How to force creation of children of a component Flex will not create the children of a component until is is added to a display object already in the display list. you can call initialize() on the component to force creating the children. - venkat http://www.venkatj. com --- In [EMAIL PROTECTED] ups.com, "letterpigeon" <[EMAIL PROTECTED] > wrote: > > Hi all, > > I think the problem I'm having right now is related to when flex > creates the components to display. > > I have a data grid which uses a custom header renderer, so when the > header is clicked, a panel (a custom component that I named > TextFilter) will show up that contains a text input (named > filterField) to accept input for searching on that column. And it's > working all fine. > > The problem occurs when I try to programmatically set filterField. text > before clicking on the header of that column. At this point, > TextFilter is initialized but filterField is not, so it's still null. > I think flex will only fully initalize the TextFilter component > before it displays, but if the column header is never clicked, flex > will not initialize TextFilter's children. > > I tried setting the creationPolicy of TextFilter to "all" but that > didn't work. > > Does anyone see any feasible solutions to this. Any help would be > greatly appreciated. > > Regards, > Ban > ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs