Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
385
Hide right images of a tree-view node, for a specific node when expanded, and then show the images when collapsed
posted

Hello,

I have a UltraTree(default tree view) where I  would like to hide the rightimages of a node when expanded, and then show the image(s) again once collapsed. The tree is unbound(populated on the fly), and it is not workable to delete the images and then re add them as they are specific to that node(the appropriate images cannot be determined without completely repopulating the tree). any help would be greatly appreciated!

Thanks and  Cheers!

Rick

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Hi Rick,

    There's no property to hide an image in the ImagesRight collection.

    The easiest thing to do would be to handle the BeforeExpand and BeforeCollapse methods and add / remove the images.

    Another option would be to use a DrawFilter or CreationFilter to hide the images from the display, but this would leave a space where the images would have been. So I think the first option is better.

Children