please help me. I have a viewstack with 4 canvas (pages). The
first is like a index, with images with "click" action that must to
1. set the viewstack selectedIndex to 1, 2 or 3
2. set the selectedIndex of a datagrid that are in the canvas
2, 3 or 4 of the viewstack.
but the first time that I make click only set the viewstack
page/canvas but not the index on the datagrid. BUT the second time
that i make click i set the viewstack page/canvas and the index in
I'm guessing the problem is that the objects in the canvases
don't get instanciated before they are being displayed for the
Thus, you're probably setting the index of a datagrid that
has not yet been created.
Perhaps you could use the creationComplete event in each
canvas to change the index of the grid?
Or maybe you could hook something up to the childIndexChange
event of the view stack.