Disable Node Click On Server Side For Parent Nodes

2 posts, 0 answers
  1. Hussein
    Hussein avatar
    2 posts
    Member since:
    May 2008

    Posted 20 May 2008 Link to this post

    You Can Disable Node Click On Parent Node On Server Side By Setting the Value of  PostBack to false then handle the level for node on node click event

     Example :

    RadTreeNode Node = new RadTreeNode(Node Name Here, Node Value Here)  
    Node.PostBack = false;  
    tree.Nodes.Add(Node );  
     
    //And on NodeClick Event We Do The Following : 
    protected void tree_NodeClick(object sender, RadTreeNodeEventArgs e)  
    {  
        if (e.Node.Level != 0) 
     
        {  
           //Your Event For Click Here  
        }      
    }  
     
       
     
  2. Karthik
    Karthik avatar
    3 posts
    Member since:
    Jun 2009

    Posted 05 Jun 2009 Link to this post

    Thanks a lot.
Back to Top