| Author |
How to make an image visible and invisible on click in itemrender?
|
aman thind
Ranch Hand
Joined: Jun 29, 2007
Posts: 71
|
|
I have an itemrenderer which is inside an MDataGrid. Now when user logs in for the first time there will be a "new" image on all the columns. When user clicks/ double clicks any column, the image should get removed from that particular column. I am not able to achieve this. I tried invalidateDisplayList, invalidateList, nothing is working.Please help.
Thanks in advance,
Aman
|
Aman Thind
SCJP,SCWCD
JAVA utte mar JAVA,mit JAVA
|
 |
Scott Selikoff
Saloon Keeper
Joined: Oct 23, 2005
Posts: 3652
|
|
|
Have you tried invalidateProperties? I suggest posting some code so we can understand exactly what you are trying to do.
|
My Blog: Down Home Country Coding with Scott Selikoff
|
 |
Ruchira Ghosh
Greenhorn
Joined: Nov 25, 2010
Posts: 13
|
|
Try using addChild and removeChild methods of mx.Core.UIComponent.
removeChild(DisplayObject(linkButton: LinkButton)
addChildDisplayObject(linkButton: LinkButton)
Thanks & Regards,
Ruchira
|
 |
 |
|
|
subject: How to make an image visible and invisible on click in itemrender?
|
|
|