tags:

views:

104

answers:

1

Hi all,

I have a datagroup where I use a custom itemRenderer with a datagrid inside. What I want is to access each datagroup's itemRenderer's datagrid and get it's dataProvider

All I know is that you can access the ItemRenderer by using myDataGroup.getElementAt(index)

Thanks in advance

A: 

I wonder why you need to do this. Wouldn't your dataGroup already have access to all the data it is passing down into the renderers?

That said something like this should work:

(myDataGroup.getElementAt(index) as myCustomItemRenderer).myDataGrid.dataProvider 
www.Flextras.com
Well I want to get the edited dataProvider from each itemRenderer's datagrid
chchrist
Can you quantify what "edited" means in this case? Objects are passed by reference, so if the dataProvider is modified in your renderer it should automatically be updated in the parent.
www.Flextras.com
What I actually want to do is to loop through all the datagrids calculate their total values and the display the sum of all totals.
chchrist