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
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]
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
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
-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
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
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
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
}
- 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
]
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
10 matches
Mail list logo