Telerik
Skip Navigation LinksHome / Community / Forums / ASP.NET AJAX > TreeView > Using NodeTemplate

Not answered Using NodeTemplate

Feed from this thread
  • Posted on Jun 26, 2009 (permalink)

    I have a node template which has a number of image buttons on it.

    Is there an easy way of getting the node  on which the buttons reside on the click event? More generically, is there a way of getting the parent node of any controls in the NodeTemplate on their click event?

    --
    Stuart

    Reply

  • Telerik Admin admin's avatar

    Posted on Jun 26, 2009 (permalink)

    Hello Stuart,

    The node would be one of the parent controls (if not the first Parent) depending on your template. So you can do this:

    RadTreeNode node = (RadTreeNode)imageButton.Parent;

    If you have deeper nesting you should traverse the parent controls until you find the tree node.

    Greetings,
    Albert
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.

    Reply

Back to Top

Skip Navigation LinksHome / Community / Forums / ASP.NET AJAX > TreeView > Using NodeTemplate
Related resourses for "Using NodeTemplate"

ASP.NET TreeView Features  |   Documentation   |  Demos  |  Telerik TV  |  Self-Paced Trainer  |  Step-by-step Tutorial  ]

Powered by Sitefinity ASP.NET CMS

Contact Us | Site Feedback | Terms of Use | Privacy Policy
Copyright © 2002-2010 Telerik. All rights reserved.