Hi,
We are using intragastric win ultra tree v15.1
Currently, we are showing the checkbox and image along with it using the following logic.
i.e
node.Override.NodeAppearance.Image = "some value";
Question:
is it possible to have two images along with a check box in UltraTreeViewNode
One image like the above, and we want to show/hide the second image based on some condition.?
Appreciate your help.
Hi Rushaal,
Thank you for posting to Infragistics Community!
Before I proceed with assisting you, I would like to point out that version 15.1 of Ultimate UI for Windows Forms is long expired and is no longer eligible for developer support services. Please, refer to our Product Lifecycle page for further details. Having this in mind, the provided suggestions and samples target the currently supported versions of the components. Nevertheless, it is quite possible that the features specifically regarding the UltraTree are also available in version 15.1. Still, we recommend considering upgrading to the latest version in order to leverage all introduced fixes, features and enhancements since then.
So, to address your question, I believe you will find the “Add Multiple Images to a Node” topic in our documentation quite helpful on the matter. The UltraTreeNode has a LeftImages and RightImages collecitons, which mean multiple images can be added. Additionally, these work fine with the Checkbox NodeStyle.
To demonstrate this, below I am attaching a sample with an UltreTree, where two images are added to the LeftImages collection of each node. The second image is then conditionally added/removed based on the node’s checked state. This logic is only chosen for the purposes of the example, so please, feel free to further adapt the approach to your specific application scenario.
In conclusion, please, check out the referenced resources and let me know if you need further assistance on the matter.
Best regards, Bozhidara Pachilova Associate Software Developer
2742.UltraTreeNodeImages.zip