RadTreeviewContextMenu and RadMenu

2 posts, 1 answers
  1. orim
    orim avatar
    29 posts
    Member since:
    Mar 2012

    Posted 24 May 2013 Link to this post

    i have RadTreeviewContextMenu and RadMenu in my app.
    This RadMenu is in Masterpage
    <telerik:RadMenu ID="RadMenuMaster" runat="server" EnableEmbeddedSkins="false"
                                           EnableShadows="True" Style="z-index: 1000;">

    This is my TreeView in Default.aspx
    <telerik:RadTreeView ID="RadTreeViewFileShare" runat="server" >
                       <telerik:RadTreeViewContextMenu ID="RadTreeViewContextMenuFs" runat="server">
                                       <asp:Panel ID="PanelFindNode" runat="server" style="padding:5px;" DefaultButton="ButtonFindTreeNode">
                                       <asp:Label ID="LabelFindNode" runat="server" Text="Find Node:" AssociatedControlID="TextBoxFindTreeNode" /> 
                                       <asp:TextBox ID="TextBoxFindTreeNode" runat="server" AutoCompleteType="Search"></asp:TextBox>
                                       <asp:ImageButton ID="ButtonFindTreeNode" runat="server" ImageUrl="~/Images/Search/Search.ico"
                                           ToolTip="Search for node" OnClick="ButtonFindTreeNode_Click" ImageAlign="Middle" />
    Why does the Stylesheet affects the RadMenu.
    When i comment out the RadTreeViewContextMenu everything work fine.

    Any Idea
  2. Answer
    Kate avatar
    1898 posts

    Posted 03 Jun 2013 Link to this post


    From the information that you provided I can assume that you are referring to the base stylesheet of the RadMenu that is applied. In that case you get this behavior since once the basestylesheet is loaded on the page for any menu (it will load for any other menu or contextmenu that is on the page) it will automatically be applied to the RadMenu no matter that you set the EnableEmbeddedBaseStylesheet property to false. However, in the case when you have only one menu and you disable the embedded base stylesheets on it or if you have several menus where you disable the base style sheets for all of them the styles will not be applied to the menu(s).   

    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top