This is a migrated thread and some comments may be shown as answers.
RadToolBar SiteMapDatasource
9 Answers 101 Views
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 05 Aug 2008, 08:38 PM
I have a RadMenu in my Sharepoint site.  I want to load from a SiteMapDatasource.  I have that working.  What I want to do is to only load from that SiteMapDataSource 1 level down from the Level up.  For instance, lets say my navigation is like this

Level 1.1
    Level 2.1
        Level 3.1
Level 1.2
    Level 2.2
        Level 3.2

I have a left navigation where I select Level 1.1.  In the center of my page I have a RadMenu.  I want the RadToolBar to load Level 2.1.  The end result will look something like this

This Would be my left Nav.  Let's say I select Home.
Home
    Associates
        Benefits
        PTO
    Other People
    Forms
    Google
    Ebay
Documents
    Internal
    External

When selecting Home, I would like to see my middle bar which uses RadToolBar to show the following:

Associates  Other People  Forms  Google  Ebay


I would rather not do this programatically if I can avoid it.  I would like to use something like the "MaxDataBindDepth"  like the RadPanel uses.

9 Answers, 1 is accepted

Sort by
0
Chris
Top achievements
Rank 1
answered on 05 Aug 2008, 09:34 PM
I actually meant RadMenu. I do not not know to move this tread.
0
Atanas Korchev
Telerik team
answered on 06 Aug 2008, 06:24 AM
Hello Chris,

RadMenu exposes the MaxDataBindDepth property as well. Have you tried it? Also you can use the StartingNodeOffset or the StartingNodeUrl properties of the SiteMapDataSource control.

Regards,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Chris
Top achievements
Rank 1
answered on 06 Aug 2008, 02:58 PM
Thanks.  I'm almost there.  What I need to have happen is based on the current node, I want to show just 1 level down in my RadMenu.  I do not want to base it on my Root node.  It seems what I have now always bases it on the Root node.  I really just need to base on the current node. Example

Root 1
    2nd Level 1
        3rd Level 1
        3rd Level 2
        3rd Level 3
    2nd Level 2

So lets say I select the Root 1, I want my menu to show:
2nd Level 1  2nd Level 2

Lets say I select the 2nd Level 1, I want my menu to show:
3rd Level 1  3rd Level 2  3rd Level 3

Here is the code I have now:

SiteMapDS Connection:

<PublishingNavigation:PortalSiteMapDataSource ID="SiteMapDS2" Runat="server"
       SiteMapProvider="CurrentNavSiteMapProvider" StartFromCurrentNode="true" StartingNodeOffset="1" ShowStartingNode="false" />

RadMenu info:

<telerik:RadMenu runat="server" ID="RadMenu1" DataSourceID="SiteMapDS2" Skin="Gray" Style="width: 748px; padding-left: 3px;" MaxDataBindDepth="1">
        </telerik:RadMenu>

0
Atanas Korchev
Telerik team
answered on 06 Aug 2008, 03:32 PM
Hello Chris,

You can try this:
                  <PublishingNavigation:PortalSiteMapDataSource ID="siteMapDataSource1" Runat="server"
                                            SiteMapProvider="CurrentNavSiteMapProvider"
                                            StartFromCurrentNode="true" StartingNodeOffset="1" ShowStartingNode="false"
                                            TreatStartingNodeAsCurrent="false" />

Regards,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Chris
Top achievements
Rank 1
answered on 06 Aug 2008, 05:06 PM
No Go.  My Nav still works like this:

Associates
        Benefits
                PTO
                Vision
                401k
        HR General
Forms

If I select Associates, the RadMenu shows this:
Benefits    HR General

If I select Benefits, the RadMenu shows this again:
Benefits    HR General

It should show this:
PTO    Vision    401k


0
Atanas Korchev
Telerik team
answered on 07 Aug 2008, 07:16 AM
Hello Chris,

Unfortunately I am out of ideas. Keep in mind we are not SharePoint experts. I suggest you check the documentation of the PortalSiteMapDataSource control or ask the same question in some SharePoint related forum. By the way do you managed to implement the same using the built-in SharePoint menu? The same approach should work with RadMenu as well.

Regards,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
amit
Top achievements
Rank 1
answered on 17 Jul 2009, 01:46 PM
Hi,

We have rad menu control . We are using it in sharepoint 2007 and sitemap as data source.
We have one requirement where when user hovers over root1 all subitems of root1 should get displayed.
When we did it using javascript and on clientload opened the all items, it overlaps other items.
How to expand all Root1 items without overlapping when client hovers mouse over root1

Root 1                      Root2
    2nd Level 1               Root2 level1   
        3rd Level 1             Root2 level2
        3rd Level 2
        3rd Level 3
    2nd Level 2

Your help will decide our course of action on this.

Regards
Amit Lohogaonkar

0
doug
Top achievements
Rank 1
answered on 10 Nov 2009, 01:35 PM
Hi
I am looking to have a single site map providor.
So using "<telerik:RadSiteMapDataSource" that will connect into a sitemap.cs class that can be used both by "<telerik:RadSiteMap", "

<

 

telerik:RadPanelBar" site menu and of course the GoogleSitemap control.

Since there are so many consumers of 'the site map' it is a pain to have it all disjoint so I aim to get it out of a DB.
The additional snag is that English is not the only language so the map is available in a number of languages.
Also Language and Market are two different things eg fr-fr and fr-ca are a world appart so might point to different content.
So have you some examples of hooking up "RadSiteMapDataSource" to a DB?
Can "RadSiteMap" expose itself as a GoogleSiteMap source?

Thanks

Doug,UK

0
T. Tsonev
Telerik team
answered on 13 Nov 2009, 06:01 PM
Hello,

The RadSiteMapDataSource can read data from any SiteMapProvider. You'll still have to write the provider yourself. Check out these links for more info:
http://msdn.microsoft.com/en-us/library/ms178431.aspx
http://msdn.microsoft.com/en-us/magazine/cc163657.aspx

Our data source is very close to the standard ASP.NET SiteMapDataSource. It provides greatly improved design-time support and convenient way to directly bind to XML site map files, but it will not bind directly to databases or such.

I'm not sure that I understand exactly what the "GoogleSitemap" is. Do you have the Sitemap protocol in mind? We can help you to export your site map to this format. There's a helper class that we plan to develop further, so let us know if this is what you have in mind.

All the best,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Menu
Asked by
Chris
Top achievements
Rank 1
Answers by
Chris
Top achievements
Rank 1
Atanas Korchev
Telerik team
amit
Top achievements
Rank 1
doug
Top achievements
Rank 1
T. Tsonev
Telerik team
Share this question
or