[flexcoders] Re: Accessing a datagrid inside a different viewstate

2006-07-10 Thread Tim Hoff
Hi Joe, Instead of pushing the data to the DataGrid, have the DataGrid pull the data from the public ArrayCollection with binding. Note the curly binding braces. mx:DataGrid id=dg dataProvider={myArrayCollection}/ When the data in the ArrayCollection changes, the DataGrid will reflect the

[flexcoders] Re: Accessing a datagrid inside a different viewstate

2006-07-10 Thread Tim Hoff
Sorry Joe, Forgot to mention that you have to reference the public ArrayCollection's location. dataProvider={parentDocument.myArrayCollection} or, for Cairngorm: dataProvider={ModelLocator.getInstance().myArrayCollection} -TH --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED]

[flexcoders] Re: Accessing a datagrid inside a different viewstate

2006-07-10 Thread Tim Hoff
Hi Jesse, I started using this approach because it was used in the samples. When I sought to increase the performace of the application, I noticed a little gain when I bound the source directly to the DataProvider. By creating an additional [Bindable] ArrayCollection and an additonal

Re: [flexcoders] Re: Accessing a datagrid inside a different viewstate

2006-07-10 Thread JesterXL
programmer guys don't shoot themselves in the foot performance wise. - Original Message - From: Tim Hoff [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, July 10, 2006 11:53 AM Subject: [flexcoders] Re: Accessing a datagrid inside a different viewstate Hi Jesse, I started

[flexcoders] Re: Accessing a datagrid inside a different viewstate

2006-07-10 Thread Tim Hoff
-OOP programmer guys don't shoot themselves in the foot performance wise. - Original Message - From: Tim Hoff [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, July 10, 2006 11:53 AM Subject: [flexcoders] Re: Accessing a datagrid inside a different viewstate Hi

[flexcoders] Re: Accessing a datagrid inside a different viewstate

2006-07-10 Thread Tim Hoff
Hoff TimHoff@ To: flexcoders@yahoogroups.com Sent: Monday, July 10, 2006 11:53 AM Subject: [flexcoders] Re: Accessing a datagrid inside a different viewstate Hi Jesse, I started using this approach because it was used in the samples. When I sought to increase the performace

Re: [flexcoders] Re: Accessing a datagrid inside a different viewstate

2006-07-10 Thread JesterXL
things as non-Cairngorm. It all depends as you say. - Original Message - From: Tim Hoff [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, July 10, 2006 4:37 PM Subject: [flexcoders] Re: Accessing a datagrid inside a different viewstate Ok, after a little more thought. Yes, you

[flexcoders] Re: Accessing a datagrid inside a different viewstate

2006-07-10 Thread Tim Hoff
Subject: [flexcoders] Re: Accessing a datagrid inside a different viewstate Ok, after a little more thought. Yes, you had me at encapsulation. But, the View's shouldn't know about ModelLocator.., :: scratches head ::, but Views should be bound to the ModelLocator for state? I can see

Re: [flexcoders] Re: Accessing a datagrid inside a different viewstate

2006-07-10 Thread JesterXL
} - Original Message - From: Tim Hoff [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, July 10, 2006 5:42 PM Subject: [flexcoders] Re: Accessing a datagrid inside a different viewstate Yeah, sorry to infer that you weren't conforming to Cairngorm. Any chance you could show

[flexcoders] Re: Accessing a datagrid inside a different viewstate

2006-07-10 Thread Tim Hoff
] To: flexcoders@yahoogroups.com Sent: Monday, July 10, 2006 5:42 PM Subject: [flexcoders] Re: Accessing a datagrid inside a different viewstate Yeah, sorry to infer that you weren't conforming to Cairngorm. Any chance you could show us how you are using the command callback? I