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 Srirahi,
I believe here is a good starting point:
http://help.infragistics.com/Help/NetAdvantage/NET/2008.2/CLR3.5/html/Web_Application_Styling.html
Please, follow all the links for additional information. "AppStylist for ASP.NET" is a great standalone tool for styling our controls and the AppStyling framework related to how this plays with deploying the controls on the server.
HTH,
Hi Steve,
I am not using any Styleset. Infact I dont know about Styleset. Can you please give me some info on that.
Srihari Reddy
Hi Srihari,
The logic for ClassicTree is complex, so it requires that the images for Expansion, Collaspsing, and connector lines to all have spedific names. However, you're free to use your own images, and rename them to the spefic names for the Tree. In the past, this would have been trickier, however, AppStylist for Asp.Net makes this a lot simpler. Instead, you can open up the Styleset you're modifying, and click the image that you want to update, then specify your own, and it will copy the image into the styleset, and rename it to the correct name.
Hope this helps,
-SteveZ
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
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.