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
190
Treeview not performing postback on NodeClick
posted

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">

     <Nodes>

                             <ig:DataTreeNode Key="New Client" Text="Add New Client">                   

              </ig:DataTreeNode>

         </Nodes>

         </ig:DataTreeNode>

 

</Nodes>

 

</ig:WebDataTree>

  </div>

 <div id="col2outer">

<div id="divUserControl" runat="server"> </div>

 

</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

Parents
No Data
Reply Children
No Data