|
You need to use the dataProvider. The DataGrid
control re-uses the visual elements when you scroll, so all of the total cells
don’t really exist all of the time. Folks see this regularly when they use a
checkbox renderer in a datagrid and fail to have it set and be set from the
dataProvider. The checked state is not persisted when you scroll. From: Thank You Tim! That would have been my next step, if I
couldn't figure out how to get the Column method to work. With that said, isn't there still a way to
grab the DataGrid's Column, and then loop through it's values?? For example: var myColumn:DataGridCo Then perform some looping on this? Or: var myColumn:Object = myDataGrid.columns( Just thinking out loud on this - as I am
just trying to figure out if this can be done, by grabbing a reference to the
DataGridColumn - and then doing my logic. The problem is, I don't know if
it's just the Column reference that gets passed to the Variable, or if the
Data comes along with it... Either way, thanks for the idea - and I
appreciate the reply, Mike From: Hi Mike, You could
use calculations like this on the dataProvider and bind the return value
to the textField. private function calculateTotal( myDataProvider : ArrayCollection
) : Number return totalAmount; -TH Tim Hoff -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___ |
RE: [flexcoders] Re: Looping through a DataGrid, in order to get Grand Total from 1 specific Column?
- RE: [flexcoders] Re: Looping through a DataGrid, in order to... Tracy Spratt

