This content has been marked as final. Show 4 replies
I'll look for a better method to do it, but meanwhile you can do it so:
At your itemrenderer code, add a function to cretioncomplete event.
In this function add a eventlistener to your outerDocument, in this case your datagrid. outerDocument.addEventListener(....)
Guess this will solve your problem.
Thanks for reply,
i tried as u said, but its displaying that button in all rows on datagrid.
I want button to be displayed only in selected row.
i.e., if i rollOver on a row.. only in that row i want button to be visible..
Thanks & Regards
Hm... i see...
I'm sorry but I wont be able to give you an answer now. Sorry!
"Pratap Reddy" <firstname.lastname@example.org> wrote in message
> Hi Peter,
> Thanks for reply,
> i tried as u said, but its displaying that button in all rows on datagrid.
> I want button to be displayed only in selected row.
> i.e., if i rollOver on a row.. only in that row i want button to be
If you add another property to your data object that is just for the
rollover/rollout, you should be able to set that property on the item to
true or false, then bind the visibility of the button to that property:
renderer:UIComponent = e.currentTarget as UIComponent;
dataObject:YourDataObjectType = renderer.data as YourDataObjectType;