Postback property only for child nodes

2 posts, 0 answers
  1. Robert Dennyson
    Robert Dennyson avatar
    11 posts
    Member since:
    May 2010

    Posted 02 May 2011 Link to this post

    how to set the Postback property only for child nodes(node that do not have child nodes), and parent nodes should not trigger server event in RadTreeView? Please help me to achieve this...

    Thanks in Advance
    Robert Alphonse Dennyson
  2. Kate
    Kate avatar
    1898 posts

    Posted 05 May 2011 Link to this post

    Hello Robert Dennyson,

    Please take a look at the sample page that I have attached. Using client-side code I check if the node has children or not and if not the servevr event is fired:
    <script type="text/javascript">
           function OnClientNodeClickingHandler(sender, args) {
               //checks if the clicked node is parent node
               if (args.get_node().get_allNodes().length != 0) {

    Best wishes,
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top