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

PanelBar with TreeView - how to handle TreeView events?

2 Answers 60 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Kirk Potter
Top achievements
Rank 1
Kirk Potter asked on 13 May 2010, 03:01 PM
Hi,

I have a RadPanelBar with a TreeView contained within an ItemTemplate.

How do I handle a NodeClick event for the TreeView?  Before the TreeView was part of the PanelBar it was simple:

Private Sub RadTreeView1_NodeClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadTreeNodeEventArgs) Handles RadTreeview1.NodeClick

Now it is in the PanelBar VS doesn't like the Handles RadTreeview1.Nodeclick

Thanks in advance,

Kirk

2 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 13 May 2010, 03:49 PM
Hi Kirk Potter,

You can subscribe to NodeClick event also in the treeview definition:

<telerik:RadTreeView ID="RadTreeView1" runat="server" OnNodeClick="RadTreeView_NodeClick" />


Kind regards,
Yana
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Kirk Potter
Top achievements
Rank 1
answered on 13 May 2010, 03:53 PM
That does the job - many thanks.
Tags
PanelBar
Asked by
Kirk Potter
Top achievements
Rank 1
Answers by
Yana
Telerik team
Kirk Potter
Top achievements
Rank 1
Share this question
or