I'm running into a problem here and I feel like my solution is a
Rube-Goldberg machine.  Usually, that means the solution is wrong.
Hopefully this post isn't too long to get a good response...

Again, a Cairngorm app...  The ModelLocator contains an object with an
array of items.  Inside each item is another array of items.  Some
psudocode would look like this:

model.cart : Cart
model.cart.items : Array
model.cart.items[0] : CartItem()
model.cart.items[0].name : String
model.cart.items[0].barcodes : Array

...and I've bound the items to a DataGrid like so:

<DataGrid dataProvidor="{model.cart.items}">
    <DataGridColumn labelFunction="countBarCodes" />
</DataGrid>

The DataGrid initially displays everything properly, and it
automatically updates cell values when CartItem.name changes, or when
a new CartItem is added.  However, it does not update the DataGrid
when an item is added to CartItem.barcodes array.

I suspect the solution is either in changing one of the Arrays to an
ArrayCollection, or adding a change listener to something, but I am
unsure where I would add that.

Any have suggestions?

-Cameron

-- 
Cameron Childress
Sumo Consulting Inc
http://www.sumoc.com
---
cell: 678.637.5072
aim: cameroncf
email: [EMAIL PROTECTED]


-------------------------------------------------------------
To unsubscribe from this list, simply email the list with unsubscribe in the 
subject line

For more info, see http://www.affug.com
Archive @ http://www.mail-archive.com/discussion%40affug.com/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------


Reply via email to