This is a migrated thread and some comments may be shown as answers.
StaticDisplayLevels please?
2 Answers 51 Views
This is a migrated thread and some comments may be shown as answers.
mac
Top achievements
Rank 1
mac asked on 26 Jul 2008, 12:09 AM
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  
     Yahoo 
     MSN 
     Google 
   News Sites 
     CNN 
     BBC 
     FOX


  <asp:ScriptManager ID="ScriptManager1" runat="server">  
        </asp:ScriptManager> 
       <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" />   
       
 
        
        
       <telerik:RadMenu OnClientLoad="ShowSecondLevel" ClickToOpen="false"   
        ID="RadMenu1" runat="server"   
        DataSourceID="SiteMapDataSource1"   
        Skin="Inox" ExpandAnimation-Type="InCubic">  
        <ExpandAnimation Duration="20" /> 
          
            <CollapseAnimation Duration="200" Type="OutQuint" /> 
        </telerik:RadMenu> 
        <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" /> 
            </asp:Menu> 

if you have a workaround that would be cool
thanks.
mac

2 Answers, 1 is accepted

Sort by
0
David
Top achievements
Rank 1
answered on 01 Aug 2008, 10:13 PM
Hi,

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:

http://www.winterdom.com/weblog/CommentView,guid,05b54c19-f530-41a4-8e03-6e70eccb0ed7.aspx

That should help you.

David
0
Peter
Telerik team
answered on 02 Aug 2008, 09:13 AM
Hi,

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.


Regards,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Menu
Asked by
mac
Top achievements
Rank 1
Answers by
David
Top achievements
Rank 1
Peter
Telerik team
Share this question
or