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
220
Change the collapaseimage url when using a classic tree
posted

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.WebTreeTarget = Infragistics.WebUI.UltraWebNavigator.WebTreeTarget.ClassicTree;

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

Parents
  • 7694
    posted

     

    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.

     

Reply Children