I think it stems from the use of an array in databinding. One way to fix this is to reassign your dataprovider. Also you could broadcast a model change event upon completion of the changes. This would hopefully then trigger the sum to change.
I had a similar issue a while back and Tracy helped me out. http://www.mail-archive.com/flexcoders@yahoogroups.com/msg09669.html -Kent -----Original Message----- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Johnny Sent: Wednesday, July 13, 2005 5:45 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] modelChanged event Hi, I have a DataGrid control and use addItem and removeItemAt method to add and remove items. This works properly. At the same time, I need to dynamically calculate the sum for certain field in the DataGrid and bind the result to a text field. I add a listener for modelChanged event of dataProvider and add a sum function there. But the sum function never gets triggered at all even after an item is added, deleted or all items are removed. The array that binds to the dataProvider will create after a remote service call. The listener is created at the initialize function of the appliation. Could this be a problem? Thanks, J -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/