Jason, I tried that.

It forced me to also add   includeIn  property (along with
itemCreationProperty) .
I had to create a few states (I didn't have any before) , including   State
 name="Immeriate"   and do:  includeIn="Immediate",
then I got error # 2006:  The supplied index is out of bounds  from Spark
code...
How do I resolve that?



On Mon, May 19, 2014 at 12:37 PM, Jason Guild <[email protected]>wrote:

> Hi Oleg:
>
> Try setting property:
> itemCreationPolicy="immediate"
>
> on the NavigationContent instances in your ViewStack that you need to be
> available sooner.
> Jason
>
>
> On 5/19/2014 8:29 AM, Oleg Konovalov wrote:
>
>> Hi,
>>
>> I have a ViewStack with a bunch of NavigationContent's, each of them
>> having
>> a View, which contains at least one DataGrid or ADG.
>>
>> Trying to implement a transition from one view to another
>> programmatically,
>> so user selects a row in one DataGrid, and via right-mouse-click gets a
>> views selection,
>> which display related data (in another view).
>>
>> It works overall in most cases,
>> but often I get into situation when that other view is not yet
>> initialized,
>> it is still NULL, so user can't call any method related to that view, like
>> get a data from related service to populate that DataGrid.
>>
>> Suppose I clicked on row in view1, and now trying to show related data in
>> view2.
>>
>> 1) Is there way to force creation/initialization of that view?
>> ( I assume, doing   view2 = new MyView(params) is too low level
>> can't do view2.initialize() either since view2=null. )
>>
>> 2) Also even though the second view is displayed (doing
>> vs.selectedIndex=2),
>> in the menu on top of that page it still shows previous view selected.
>> How do I select correct menu item after displaying item2?
>>
>>
>>
>


-- 
Thank you,
Oleg.

Reply via email to