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

  • 29417
    Suggested Answer
    Offline posted

    Hello wins903

    Thank you for posting in our forum. 

    I’ve looked into your issue and tested this code on my side however the event seems to fire as expected with the current set-up on my side.

    I have attached the sample project I used to test this.  Please test this project on your PC; whether or not it works correctly may help indicate the nature of this problem. 

    If the project does not work correctly, this indicates either a problem possibly specific to your environment, or a difference in the DLL versions we are using.  My test was performed using version 13.1.20131.2107 of 13.1. 

    If this sample project is not an accurate demonstration of what you're trying to do, please feel free to modify it and send it back, or send a small sample project of your own if you have one. 

    Please let me know if I can provide any further assistance.

     

    Best Regards,

    Maya Kirova

    Developer Support Engineer II

    Infragistics, Inc.

    http://es.infragistics.com/support

     

    WDT.zip