actionscript 3 - accessing current rowData of dataprovider in flex view -
i have view
<view:sampledatagridview rowcount="{math.min(max_row_count, hostcomponent.datalist.length)}" dataprovider="{hostcomponent.datalist}" buttonmode="true" click="clickrow(event)" />
i want row clicked. tried using currenttarget
, target
event
object wasn't of use.
is there way can pass parameter in clickevent
function clickevent(rowdata)
or clickevent(currentrowindex)
?
is there property when use dataprovider
show currentindex
?
data grid
<mx:datagrid id="employeedatagrid" doubleclickenabled="true" itemdoubleclick="selectemployee(event);" dataprovider={employeelist} >
handler
protected function selectemployee(event:listevent):void { var selectedemployee:employee = event.currenttarget.selecteditem employee; }
Comments
Post a Comment