PanelBar with TreeView - how to handle TreeView events?

3 posts, 0 answers
  1. Kirk Potter
    Kirk Potter avatar
    6 posts
    Member since:
    May 2010

    Posted 13 May 2010 Link to this post

    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. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 13 May 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Kirk Potter
    Kirk Potter avatar
    6 posts
    Member since:
    May 2010

    Posted 13 May 2010 Link to this post

    That does the job - many thanks.
Back to Top