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

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

    This is my TreeView in Default.aspx
    <telerik:RadTreeView ID="RadTreeViewFileShare" runat="server" >
                   <ContextMenus>
                       <telerik:RadTreeViewContextMenu ID="RadTreeViewContextMenuFs" runat="server">
                           <Items>
                               <telerik:RadMenuItem>
                                   <ItemTemplate>
                                       <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" />
                                      </asp:Panel>
                                   </ItemTemplate>
                               </telerik:RadMenuItem>
                           </Items>
                       </telerik:RadTreeViewContextMenu>
                   </ContextMenus>
           </telerik:RadTreeView>
    Why does the Stylesheet affects the RadMenu.
    When i comment out the RadTreeViewContextMenu everything work fine.

    Any Idea
    Thanks
  2. Answer
    Kate
    Admin
    Kate avatar
    1898 posts

    Posted 03 Jun 2013 Link to this post

    Hello,

    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).   

    Regards,
    Kate
    Telerik
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top