"Leaf" Nodes

2 posts, 0 answers
  1. Joe
    Joe avatar
    2 posts
    Member since:
    Nov 2010

    Posted 09 Nov 2010 Link to this post

    I have a RadTreeView control that runs a function on the onclientnodeclicked event.  I do not want the code in the function to be executed unless the node is a "leaf" (a node with no children).  How do I accomplish this?
  2. Joe
    Joe avatar
    2 posts
    Member since:
    Nov 2010

    Posted 09 Nov 2010 Link to this post

     

    Figured this out...

    While building the tree recursively I use the following two lines (instead of using the onclientnodeclicked event) :

    childNode.Attributes.Add("onclick", "theTreeNodeClicked('" & dr("ID") & "')") 
    parentNode.Attributes.Remove("onclick")



Back to Top