This is a migrated thread and some comments may be shown as answers.

navigationdepth

2 Answers 61 Views
Sharepoint Integration
This is a migrated thread and some comments may be shown as answers.
Jan
Top achievements
Rank 1
Jan asked on 22 Oct 2007, 04:24 PM
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 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 24 Oct 2007, 03:21 PM
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
0
Jan
Top achievements
Rank 1
answered on 25 Oct 2007, 01:54 PM
thats it thanks a lot :)

Jan
Tags
Sharepoint Integration
Asked by
Jan
Top achievements
Rank 1
Answers by
Peter
Telerik team
Jan
Top achievements
Rank 1
Share this question
or