1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Looking for a multi column site map control

Looking for a multi column site map control

4 posts, 0 answered
  1. Stephen Jnr
    Stephen Jnr avatar
    3 posts
    Registered:
    05 Aug 2009
    22 Dec 2009
    Link to this post
    Hi Folks

    I'm looking to show a site map in my footer across multipul columns however I cant figure out how to apply this to the Site TreeView. I think this has already been done in the marketplace Site Map Control however the link is dead at the moment. Does anyone have a copy of this control or a quick implementation that would do this?

    The goondocks site has an error at the moment so I cant even get the tut to diy it.
    http://www.sitefinity.com/marketplace/modules/site-map-control.aspx

    Cheers
    Steve
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    22 Dec 2009
    Link to this post
    Hello Stephen Jnr,

    As far as I see the code in show at the http://www.sitefinity.com/marketplace/modules/site-map-control.aspx. The control just illustrates how to bind the control to the SiteMapDataSource. You may also find the following post useful which shows RadTreeView data binding Creating a custom WebUITypeEditor.
    Another way is show below:

    manager = new CmsManager();
    IList AllPages = manager.GetPages();
    var newColl = AllPages.Cast<ICmsPage>().ToList();
    RadTreeView1.DataTextField = "MenuName";
    RadTreeView1.DataFieldID = "ID";
    RadTreeView1.DataFieldParentID = "ParentID";
    RadTreeView1.DataNavigateUrlField = "StaticUrl";
    RadTreeView1.DataSource = newColl;
    RadTreeView1.ExpandAllNodes = true;
    RadTreeView1.DataBind();


    Sincerely yours,
    Ivan Dimitrov
    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.
  3. Stephen Jnr
    Stephen Jnr avatar
    3 posts
    Registered:
    05 Aug 2009
    22 Dec 2009
    Link to this post
    Hi Ivan

    Thanks for the quick reply! It's greatly appreciated, I understand the parts on how to list all the pages. The main issue comes down to displaying the pages across multipul columns, Is there a way to set this in css? or is it a back end job?

    Many Thanks
    Stephen
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    22 Dec 2009
    Link to this post
    Hello Stephen Jnr,

    RadTreeView control displays the nodes as a tree. If you want to separate the items you should use two controls that are bound to different starting position of the SiteMap or another control like RadPanelBar which RadPanelItem has a property IsSeparator.

    Regards,
    Ivan Dimitrov
    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.
Register for webinar
4 posts, 0 answered