Generic Exception When Rendering SiteMap

2 posts, 0 answers
  1. djhushd
    djhushd avatar
    6 posts
    Member since:
    Aug 2007

    Posted 18 Mar 2010 Link to this post

    I was able to get it to build properly, i had a ' instead of a ". However i can not get it to the right level of nodes.

    I would like it to start at the 2nd tier of my sitemap, and display only tiers 2, and 3

    For example, my XML is formatted:

    Tier 0 <HOME>
    Tier 1 <Top Level Nav>
    Tier 2 <Main Nav Item>
    Tier 3< Sub Nav>

    <telerik:RadSiteMap runat="server" ID="RadSiteMap1"  
            DataSourceID="SiteMapDataSource1" DataNavigateUrlField="Url"  
                DataTextField="Title"
                
                <LevelSettings> 
                    
                    <telerik:SiteMapLevelSetting Level="3" MaximumNodes="0"
                        <NodeTemplate> 
                           <href="<%# DataBinder.Eval(Container.DataItem, "url") %>"
                                <%# DataBinder.Eval(Container.DataItem, "title") %></a
                        </NodeTemplate> 
                    </telerik:SiteMapLevelSetting> 
                     
                    <telerik:SiteMapLevelSetting Level="4" MaximumNodes="0"
                        <NodeTemplate> 
                            <div> 
                                 <span class="qmdivider qmdividerx" ></span
                                <href="<%# DataBinder.Eval(Container.DataItem, "url") %>"
                                    <%# DataBinder.Eval(Container.DataItem, "title") %> 
                                </a> 
                            </div> 
                        </NodeTemplate> 
                    </telerik:SiteMapLevelSetting> 
                    
                    
                    
                </LevelSettings> 
            </telerik:RadSiteMap> 

  2. djhushd
    djhushd avatar
    6 posts
    Member since:
    Aug 2007

    Posted 18 Mar 2010 Link to this post


  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top