File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
aman thind
Ranch Hand
Posts: 71
  • 0
  • 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
Saloon Keeper
Posts: 3890
15
Eclipse IDE Flex Google Web Toolkit
  • 0
  • 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
  • 0
  • 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

 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic