tags:

views:

1652

answers:

2

i have 3 checkbox for calculating amount purpose . i used Datagrid within datgrid used

mx:DataGrid >

mx:itemRenderer>

mx:Component>

mx:CheckBox id=mycheckbox change="calc()">

mx:CheckBox>

mx:Component>

mx:itemRenderer>

public function calc():void {

statistic.dataProvider =mycheckbox.selectedItem;

}

but it's throws error like Call to possibly undfined method (calc)

A: 

A checkbox does not have a "selectedItem" function or property...

mycheckbox.selected will return true or false based on whether or not sed checkbox is checked

Not really sure what you're trying to accomplish by setting a dataprovider to true or false, seems to me like you want to use a RadioButtonGroup

Chris Klepeis
+1  A: 
Phil C