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
405
changing webtree expand and collapse images
posted

Hi,

    I have a webtree control loaded on demand using manualsmartcallbacks. I have specified different images for expand and collapse. but once I expand the node, it switches back to default image. I tried various ways like putting image directory section in web.config and specifically for the control. nothing works. initially when the nodes are added, it shows the custom image, but once expanded, the image changes back to default one. can you please help? here is the code

<ignav:ultrawebtree id="UltraWebTree1" runat="server" height="100%" width="100%" Font-Names="Arial"

Font-Size="10pt" Indentation="20" SingleBranchExpand="true" ImageDirectory="./images/infragistics"

CompactRendering="true" WebTreeTarget="HierarchicalTree" EnableViewState="false"

LoadOnDemand="ManualSmartCallbacks" OnDemandLoad="UltraWebTree1_DemandLoad">

<Images>

<ExpandImage Url="ig_treeXPplus.gif" />

<CollapseImage Url="ig_treeXPminus.gif" />

</Images>

<SelectedNodeStyle Font-Bold="True" ForeColor="White" BackColor="LightBlue">

<Padding Bottom="2px" Left="2px" Top="2px" Right="2px"></Padding>

</SelectedNodeStyle>

<NodeStyle>

<Padding Bottom="2px" Left="2px" Top="2px" Right="2px"></Padding>

</NodeStyle>

<HoverNodeStyle Cursor="Hand" Font-Underline="True">

<Padding Bottom="2px" Left="2px" Top="2px" Right="2px"></Padding>

</HoverNodeStyle>

<Levels>

<ignav:Level Index="0"></ignav:Level>

<ignav:Level Index="1"></ignav:Level>

</Levels>

<ClientSideEvents NodeClick="UltraWebTree1_NodeClick"></ClientSideEvents>

</ignav:ultrawebtree>

just some additional info here. I am using Infragistics 2007 version 7.1.