Hi,
The UltraWebTree is showing the same image, when I collapse a node or expand the node which is having some child nodes. Usually when we collapse a node it should show a [+] image and when we expand a [-] image , but it is showing the [-] image in both the cases.Please let me know if I need to change some property for that.
I am using the UltraWebTree as a classic tree , by using the following code
this.UltraWebTree1.EnableAppStyling = Infragistics.WebUI.Shared.DefaultableBoolean.True;
this.UltraWebTree1.ImageDirectory = "~/Images";
Also, is it possible to change the collapse image and expland image of the UltraWebTree when it is used in classictree mode.
Thanks & Regards
Srihari Reddy .R
Hello,
You can use the properties CollapseImage and ExpandImage of Images tag and set image for respective state.
This properties is ar available from code-behind, if you want to use dynamicaly.
For example take a look at code below:
<Images>
<CollapseImage Url="./image1.jpg" />
<ExpandImage Url="./image2.jpg" />
</Images>
If this doesn't help, please provide additional information.
Thanks.
Hi Ivan,
Changing the images using the <Images> tag didn't help. I tried using the code also( the code is given below) . Both ways didn't work. I think when We use the UltraWebTree as a ClassicTree, it is trying to take the image "ig_treeMMinus" as the expand image and "ig_treeMPlus" as the collapse image always.It is not accepting any other images as expand and collapse images.
But when the UltraWebTree is used as a HeirarchicalTree , it will accept any images as expand and collapse images.
Code used to change Images:
this.UltraWebTree1.Images.ExpandImage.Url = "~/Images/ig_treeXPMinus.gif";
Thanks
Srihari Reddy