StaticDisplayLevels please?

3 posts, 0 answers
  1. mac
    mac avatar
    137 posts
    Member since:
    May 2008

    Posted 25 Jul 2008 Link to this post

    I know this has been asked and was stated it was too late for Q1 release.. but is there a method to achieve the same menu style as the asp:menu on my sample.. I am using your standard web.sitemap. I do not want to see two flyouts, but rather
    All Sites  
      Search Engines  
       News Sites 

      <asp:ScriptManager ID="ScriptManager1" runat="server">  
           <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" />   
           <telerik:RadMenu OnClientLoad="ShowSecondLevel" ClickToOpen="false"   
            ID="RadMenu1" runat="server"   
            Skin="Inox" ExpandAnimation-Type="InCubic">  
            <ExpandAnimation Duration="20" /> 
                <CollapseAnimation Duration="200" Type="OutQuint" /> 
            <br />  <br />  <br /> 
            <asp:Menu ID="Menu1" runat="server" BackColor="#F7F6F3" DataSourceID="SiteMapDataSource1" 
                    DynamicHorizontalOffset="2" Font-Names="Verdana" Font-Size="0.8em" ForeColor="#7C6F57" 
                    Height="40px" StaticDisplayLevels="3" StaticSubMenuIndent="10px" TabIndex="3">  
                    <StaticSelectedStyle BackColor="#5D7B9D" /> 
                    <StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" /> 
                    <DynamicHoverStyle BackColor="#7C6F57" ForeColor="White" /> 
                    <DynamicMenuStyle BackColor="#F7F6F3" /> 
                    <DynamicSelectedStyle BackColor="#5D7B9D" /> 
                    <DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" /> 
                    <StaticHoverStyle BackColor="#7C6F57" ForeColor="White" /> 

    if you have a workaround that would be cool
  2. David
    David avatar
    57 posts
    Member since:
    Nov 2004

    Posted 01 Aug 2008 Link to this post


    I share your pain ;-)  I wish this did have a StaticDisplayLevels property.

    I created a CustomSiteMapDataSource that only provides to the "main/site" menu... along these lines:,guid,05b54c19-f530-41a4-8e03-6e70eccb0ed7.aspx

    That should help you.

  3. Peter
    Peter avatar
    6637 posts

    Posted 02 Aug 2008 Link to this post


    RadMenu is does not support static display for certain levels, because there are two other controls from the Telerik ASP.NET (AJAX) suit which offer this functionality - RadPanelbar and RadTreeView. If there is any reason why you cannot use one of these controls in place of RadMenu, please share it with us.

    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top