Try Now
More in this section

Forums / 3.x Pre-release forums (retired) / Use of SitemapDataSource and RadPanel

Use of SitemapDataSource and RadPanel

2 posts, 0 answered
  1. Francis Spor
    Francis Spor avatar
    6 posts
    15 May 2006
    17 Nov 2006
    Link to this post
    Hey all,
    I'm trying to use the CmsSiteMapProvider to populate a panel bar for use in internal navigation on a project I'm working on, and what I'd like is for each of the RadPanelItem's to be a sepereate directory structure, and all it's heirarchical listings on down.  For example, after the site's been all laid out using Sitefinity, I'd like the "Businesses" sub-directory, and all it's organization to appear when the Businesses Tab is clicked.  Please take a look at http://cityofalbany.light-power.com/Businesses.aspx for a sample of what I mean.

    What I've tried so far is setting the StartingNodeUrl of the SiteMapDataSource to be the Businesses.aspx page, but the panel bar does not then flow through to that pages children.

    Is what I'm trying possible, and if so, any idea on how to best achieve it?

  2. Bob
    Bob avatar
    330 posts
    24 Sep 2012
    21 Nov 2006
    Link to this post
    Hello Francis,

    I suppose the pages do not show because they are not published yet. Also, please make sure the Show in Navigation property is set to Yes.

    I’m sure you did this correctly, but let me describe the necessary steps for the sake of those who are not familiar with the SiteMapDataSource control.
    1. Drop a SiteMapDataSource control somewhere on the page (the place doesn’t matter).
    2. Drop a r.a.d.panelbar control at the desired location.
    3. Set the DataSourceID property of the r.a.d.panelbar to the ID of the SiteMapDataSource control.
    4. In the SiteMapDataSource control set the ShowStartingNode property to false.
    5. In the SiteMapDataSource control set StartingNodeOffset property to 1 if the page is at the first level or you can use the URL of the current page to set the StartingNodeUrl property. Either one will work.
    Note that if you have another navigation control for the first level on the same page, you need to set up a second SiteMapDataSource control for it.

    If the problem persists, let me know.

    the telerik team
2 posts, 0 answered