This is a migrated thread and some comments may be shown as answers.

RadTreeviewContextMenu and RadMenu

1 Answer 63 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
orim
Top achievements
Rank 1
orim asked on 24 May 2013, 04:39 PM
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

1 Answer, 1 is accepted

Sort by
0
Accepted
Kate
Telerik team
answered on 03 Jun 2013, 12:58 PM
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.
Tags
TreeView
Asked by
orim
Top achievements
Rank 1
Answers by
Kate
Telerik team
Share this question
or