This is a migrated thread and some comments may be shown as answers.

NodeClick event not firing for LoadOnDemand nodes

1 Answer 38 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Jim
Top achievements
Rank 1
Jim asked on 19 Jan 2010, 10:53 PM
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

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 22 Jan 2010, 01:37 PM
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.
Tags
TreeView
Asked by
Jim
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or