NodeClick event not firing for LoadOnDemand nodes

2 posts, 0 answers
  1. Jim
    Jim  avatar
    8 posts
    Member since:
    Mar 2009

    Posted 19 Jan 2010 Link to this post

    Working with RadTreeView file version 6.3.6.0. 

    I'm using server-side LoadOnDemand; It loads the 1st level fine and the server side NodeClick event is firing.
    Expanding a node fires the NodeExpand where I add the next level of data.
        Private Sub AddChildNodes(ByVal node As RadTreeNode) 
            If GetCustomersByNode(CInt(node.Value)) Then 
                Dim row As DataRow 
                For Each row In parentCustomer.Tables(0).Rows 
                    Dim childNode As New RadTreeNode() 
                    childNode.Text = CStr(row("CustomerName")) 
                    childNode.Value = CInt(row("CustomerNum")).ToString() 
                    childNode.ExpandMode = CInt(row("HasChild")) 
                    childNode.PostBack = True 
                    node.Nodes.Add(childNode) 
                Next row 
            End If 
        End Sub 

    When I click on any node level which has been populated via NodeExpand event, it does not perform the server side NodeClick event.
    What can I do to get the server-side event to fire when I click the node?  I've seen a suggestion to use the RadAjaxManager (which I am using for other controls in this page), but I'm not sure how to wire that up.

    Thanks,
    Jim
  2. Yana
    Admin
    Yana avatar
    5013 posts

    Posted 22 Jan 2010 Link to this post

    Hi Jim ,

    I guess that you're using RadTreeView for ASP.NET.   Please check this help article which explains this issue and how to work-around it.

    Kind regards,
    Yana
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top