More in this section

Forums / Developing with Sitefinity / A clean Site Map ucer control

A clean Site Map ucer control

4 posts, 0 answered
  1. Milkman Dan
    Milkman Dan avatar
    14 posts
    Registered:
    11 Mar 2008
    28 Apr 2008
    Link to this post
    The Telerik U demo site has a user control called "TreeViewSitemap" placed on the site map page. Just what is that and where can I find it? It isn't a "Site TreeView", that much seems clear. I like the way it's laid out without any collapsible nodes.
  2. Ivan
    Ivan avatar
    478 posts
    Registered:
    16 Jun 2015
    28 Apr 2008
    Link to this post
    Hi Milkman Dan,

    it's a very simple control, and actually you can go to TIU site (that comes with Sitefinity) under ~/UserControls folder you'll find TreeViewSitemap control (I guess someone renamed it while uploading to "SiteTreeView") and examine it there. However, you can create a new user control if you wish and paste this code... and that's that:

    <%@ Control Language="C#" ClassName="TreeViewSitemap" %> 
     
        <asp:TreeView ID="TreeView1" runat="server" DataSourceID="sitemapDS" ShowExpandCollapse="False" CssClass="sitemapTree" EnableClientScript="false">  
        </asp:TreeView> 
        <asp:SiteMapDataSource runat="server" ID="sitemapDS" ShowStartingNode="false" /> 

    As you can see it's a plain ol' TreeView with ShowExpandCollapse property set to false.

    I hope this will fulfill your needs.

    Kind regards,
    Ivan
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Milkman Dan
    Milkman Dan avatar
    14 posts
    Registered:
    11 Mar 2008
    28 Apr 2008
    Link to this post
    Yeah, that and a CSS Friendly Adapter did the trick. Thanks.
  4. Ivan
    Ivan avatar
    478 posts
    Registered:
    16 Jun 2015
    28 Apr 2008
    Link to this post
    Hi Milkman Dan,

    I am very glad it worked out. Let us know if you have any additional questions.

    All the best,
    Ivan
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Register for webinar
4 posts, 0 answered