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
images changing when node is expanded(urgent)
posted

Hi,

  when I load the tree with custom images, they are displaying correctly, but when I expand the node, the expanded node image is reset to some default minus image.

I am using netadvantage volume 2007 version 7.1

 here is the code. please help. I posted a question earlier, but there was no response.

 <ignav:ultrawebtree id="UltraWebTree1" runat="server" WebTreeTarget="HierarchicalTree" LoadOnDemand="ManualSmartCallbacks"

ImageDirectory="~/images/infragistics" OnDemandLoad="UltraWebTree1_DemandLoad" >

<Images>

<ExpandImage Url="ig_treeXPPlus.GIF" />

<CollapseImage Url="ig_treeXPMinus.GIF" />

</Images>

</ignav:ultrawebtree>

and the code-behind

protected void Page_Load(object sender, EventArgs e)

{

if (!IsPostBack)

{

Infragistics.WebUI.UltraWebNavigator.
Node node = UltraWebTree1.Nodes.Add("root");node.ShowExpand = true;

}

}

protected void UltraWebTree1_DemandLoad(object sender, WebTreeNodeEventArgs e)

{

Infragistics.WebUI.UltraWebNavigator.
Node node = e.Node.Nodes.Add("child1");

node.ShowExpand = true;

node = e.Node.Nodes.Add("child2");

node.ShowExpand = true;

}

Parents
No Data
Reply Children
No Data