navigationdepth

3 posts, 0 answers
  1. Jan
    Jan avatar
    5 posts
    Member since:
    May 2007

    Posted 22 Oct 2007 Link to this post

    Hello,

    I use the RADMenu and the RadTreeView in my Sharepoint site as the default navigation. Now I want give the RadTreeView navigation the order to show navigation items in a specific depth.

    Any solution for my problem?

    best regards
    Jan
  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 24 Oct 2007 Link to this post

    Hi Jan,

    You can do this in code behind. For example the following code leaves only first and second level nodes:

    protected void Button1_Click(object sender, EventArgs e)  
        {  
            foreach (RadTreeNode node1 in RadTreeView1.GetAllNodes())  
            {  
                if (node1.Level == 1)  
                {  
                    node1.Nodes.Clear();  
                }  
            }  
        } 

    The same applies for RadMenu.

    I hope this helps.


    Greetings,
    Peter
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center

  3. Jan
    Jan avatar
    5 posts
    Member since:
    May 2007

    Posted 25 Oct 2007 Link to this post

    thats it thanks a lot :)

    Jan
Back to Top