Even though you have a solution to your problem, I would strongly suggest
looking at how the listBase sets its dataProvider.
After it has gone through the process of setting its protected collection
property, it creates a new CollectionEvent with the kind set to
CollectionEventKind.RESET. It
Interesting question ...
Did you try the method described in this thread ?
On 2/27/07, Douglas Knudsen [EMAIL PROTECTED] wrote:
Nice. What if in this case user.projects.myArrayCollection contained a
arraycollection of tasks, and each tasks had a array collection of
activities. how do you
Nice. What if in this case user.projects.myArrayCollection contained a
arraycollection of tasks, and each tasks had a array collection of
activities. how do you watch for a change in a activity and fire
dataGrid.invalidateList(); ??
DK
On 2/24/07, Yiðit Boyar [EMAIL PROTECTED] wrote:
i had
Found your question also in another thread.
Can you post the answer to this thread please ?
If you find it eventually that is : )
Thanks fellow Flex coders;
Slangeberg's tip did the trick I was looking for ; )
On 2/25/07, slangeberg [EMAIL PROTECTED] wrote:
You can use simple binding, via {} brackets.
MyComp dataProvider={model.library} /
Or, you can use the ChangeWatcher:
ChangeWatcher.watch( model, library,
I'm getting my data back from a Ruby service.
The service method I'm calling is query of joined tables.
RoR returns this as an array of AlbumVO's.
Every AlbumVO item contains an array of TrackVO's.
That's the way it works.
To be able to use this data structure in my datagrid,
I have to loop
You can use simple binding, via {} brackets.
MyComp dataProvider={model.library} /
Or, you can use the ChangeWatcher:
ChangeWatcher.watch( model, library, onLibraryChange );
function onLibraryChange(){ /*do stuff*/ }
-Scott
On 2/24/07, Webdevotion [EMAIL PROTECTED] wrote:
Hello,
How
Hi,
Why not just make it a get, set bindable property in your ModelLocator? Then
you could dispatch and event or really whatever you want to do.
Peace, Mike
On 2/24/07, Webdevotion [EMAIL PROTECTED] wrote:
Hello,
How can I now when my arraycollection in my modellocator is filled with
i had a similar problem; when an array collection in my model is changed; my
datagrid should be refreshed so here is my code: (here ; user.projects is an
arrayCollection)
in the creation complete of the mxml file :
ModelVT.getInstance().user.projects.addEventListener(collectionChange,dgYenile);
It depends on what u are trying to do... give a little more detail and we will
be able to help you.
Dimitrios Gianninas
Optimal Payments Inc.
-Original Message-
From: flexcoders@yahoogroups.com on behalf of Webdevotion
Sent: Sat 2/24/2007 4:20 PM
To: flexcoders@yahoogroups.com
Hello,
How can I now when my arraycollection in my modellocator is filled with
items ?
I tried using collectionEvent.collection_change, but it does not fire when
setting my AC like this in my command, after the remoting result handler:
model.library = new ArrayCollection(data.result);
What is
11 matches
Mail list logo