This is a combobox change event handler used as an itemRenderer in
DataGrid:
public function handleDataChanged(event:ListEvent):void
{
// update underlying data
data.person = selectedItem.data;
// Globally store updated row
mx.core.Application.application.globalDataToSave = data;
}
I am also trying to create a generic Save routine. For that I am using
globalDataProviderToSave to "remember" the modified data. But the user
can change multiple rows in the grids before he clicks on Save. I need
to store the whole grid data into globalDataProviderToSave to be able
to save all rows. How can I access it from within item renderer every
time the user changes data? Differnet ideas?
Thanks