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

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -