NodeClick event not firing

3 posts, 0 answers
  1. Silver
    Silver avatar
    25 posts
    Member since:
    Feb 2012

    Posted 22 Feb 2012 Link to this post

    Hi,

    When I click a node in my treeview and if that node has NO child nodes, NodeClick event is firing.. Not sure why!!
    Strange thing is when I copy exact same code to a newly created project, its working fine..


    I am using .NET Framework3.5 with C#


    Any ideas?
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 23 Feb 2012 Link to this post

    Hello,

    Here is the code that I tried which worked as expected.
    ASPX:
    <telerik:RadTreeView ID="RadTreeView1" runat="server" onnodeclick="RadTreeView1_NodeClick" >
      <Nodes>
        <telerik:RadTreeNode Text="0" Value="0">
        </telerik:RadTreeNode>
      </Nodes>
    </telerik:RadTreeView>
    C#:
    protected void RadTreeView1_NodeClick(object sender, Telerik.Web.UI.RadTreeNodeEventArgs e)
     {
     
     }

    Thanks,
    Princy.
  3. Silver
    Silver avatar
    25 posts
    Member since:
    Feb 2012

    Posted 23 Feb 2012 Link to this post

    Princy,

    I got the answers for my question.. Its because of 'NavigateURL' property.

    Source: http://www.telerik.com/help/aspnet-ajax/treeview-troubleshooting-nodeclick-event-does-not-fire.html 
Back to Top