This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to make an image visible and invisible on click in itemrender?  RSS feed

 
aman thind
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Scott Selikoff
author
Bartender
Posts: 4093
21
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried invalidateProperties? I suggest posting some code so we can understand exactly what you are trying to do.
 
Ruchira Ghosh
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try using addChild and removeChild methods of mx.Core.UIComponent.

removeChild(DisplayObject(linkButton: LinkButton)
addChildDisplayObject(linkButton: LinkButton)


Thanks & Regards,
Ruchira

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!