actionscript 3 - Change cursor on datagrid row -
actionscript 3 - Change cursor on datagrid row -
i'm working on flex project, , have datagrid i'd cursor alter when hovering on row containing data.
i have double click enable on datagrid , i'd indicate utilize can click row hovering over.
this i've tried seems utilize hand cursor on datagrid self , not row data.
<mx:datagrid x="9" y="47" width="330" height="244" usehandcursor="true" buttonmode="true" mousechildren="true" horizontalscrollpolicy="{scrollpolicy.auto}" stylename="resultgrid" dataprovider="{aclatest}" doubleclickenabled="true" itemdoubleclick="doubleclickoverview()" id="overviewlatest_dg"> <mx:columns> <mx:datagridcolumn headertext="tag" id="overviewlatest_dg_animal_ptag" visible="true" datafield="animal_ptag" width="110" /> <mx:datagridcolumn headertext="status" id="overviewlatest_dg_status_status" visible="true" datafield="status_status" width="110"/> <mx:datagridcolumn headertext="sex" id="overviewlatest_dg_animal_sex" visible="true" datafield="animal_sex" width="110"/> </mx:columns> </mx:datagrid>
i create itemrenderer
, add together event listeners mouseevent.roll_over
, mouseevent.roll_out
events. in event handlers can alter cursor using cursormanager
. has added benefit of allowing alter cursor based on info or status row user hovering cursor over.
here's example on changing cursor when mousing on component. gets started in right direction.
actionscript-3 flex datagrid cursor
Comments
Post a Comment