Hi,

I think I did not mention my problem correctly. What I want is on show
() event of a viewstack, I need to reset the entire view. That is 
first time when I get a particular view (after creationComplete), all 
the dropdowns will have selected index as 0, none of the radio 
buttons/checkboxes checked, no datagrid item selected etc.

Is there an easy way to achieve this? without having to manually 
reset each and every component in the page.

Thanks
Vikram

--- In [email protected], Stephen Allison 
<[EMAIL PROTECTED]> wrote:
>
> Vikram,
> Listen for the 'show' event instead of 'creationComplete'.  The  
> ViewStack component doesn't destroy its content and recreate it as  
> you navigate around.  What it does do is defer creating it's 
contents  
> until they are displayed.  This is why creationComplete is fired 
the  
> first time you switch to a panel, but not when you switch to it on  
> subsequent occasions.
> 
> On 30 Aug 2007, at 18:41, vikram wrote:
> > Hi,
> >
> > I have a flex application which is completely menu driven. I have 
used
> > view stacks to manage different views based on what is clicked in 
the
> > menu item.
> >
> > My problem is this:
> > If I click Menu1 -> Menu1.1, then I show view 1. Lets say I do 
some
> > interactions in view 1 (change some dropdowns, radio buttons etc) 
and
> > go to another view by clicking some other menu item. When I come 
back
> > to view 1 again, it doesnt refresh i.e. it doesnt fire  
> > creationComplete
> > ().
> >
> > Each time I make a view stack visible, I want it to be re-
rendered and
> > not just make it visible. Is there a way to do this?
> >
> > Thanks
> > Vikram
>


Reply via email to