Hello:
I have read through all of the postings and tried it all...even with the code posted on the forum as 'Working'.
I am using an aspx page with Masterpage, and no matter what I do, it does not fire the code-behind.I am also using Infragistics version 13.1, so I am up to date, and with VS2010.
Any suggestions?
<asp:UpdatePanel ID="uplLeftClientNav" runat="server" >
<ContentTemplate>
<div id="col1">
<ig:WebDataTree ID="wdtLeftNav" runat="server" Font-Size="Small" Height="300px"
Width="200px" AutoPostBackFlags-NodeClick="On" OnNodeClick="wdtLeftNav_NodeClick" >
<Nodes>
<ig:DataTreeNode Text="Client Management">
<ig:DataTreeNode Key="New Client" Text="Add New Client">
</ig:DataTreeNode>
</Nodes>
</ig:WebDataTree>
</div>
<div id="col2outer">
<div id="divUserControl" runat="server"> </div>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="wdtLeftNav" EventName="NodeClick" />
</Triggers>
</asp:UpdatePanel>
Code-behind:
Protected Sub wdtLeftNav_NodeClick(sender As Object, e As Infragistics.Web.UI.NavigationControls.DataTreeNodeClickEventArgs) Handles wdtLeftNav.NodeClick
If e.Node.Key = "New Client" Then
divUserControl.Controls.Clear()
divUserControl.Controls.Add(Page.LoadControl("~/uc/NewClient.ascx"))
End If
I've encountered many problems on the Treeview component also, this always drives me mad. Nice to see your problem solved.