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

RadMenu Item template style

1 Answer 260 Views
Menu
This is a migrated thread and some comments may be shown as answers.
waruni
Top achievements
Rank 1
waruni asked on 13 May 2010, 12:34 PM
Hi,

I have a Rad menu control, in that I added the controls (e.g. link button, Login Status) to the item template .I want to add the styles for the item template.
When we click on the menu item it needs to be highlight and show in different color.

i try to do this ,but styles are not applied for item template.

code :
 <telerik:RadMenu ID="radLoginInfo" runat="server" EnableEmbeddedSkins="False" Skin="MySkin"
                    <Items> 
                        <telerik:RadMenuItem> 
                            <Items> 
                                <telerik:RadMenuItem Text="Change Password"
                                    <ItemTemplate> 
                                        <asp:LinkButton ID="lnkChangePW" runat="server" OnClientClick="openWin(); return false;">Change Password</asp:LinkButton> 
                                    </ItemTemplate> 
                                </telerik:RadMenuItem> 
                                <telerik:RadMenuItem> 
                                    <ItemTemplate> 
                                        <asp:LoginStatus ID="LoginStatus1" runat="server" /> 
                                    </ItemTemplate> 
                                </telerik:RadMenuItem> 
                            </Items> 
                        </telerik:RadMenuItem> 
                    </Items> 
                </telerik:RadMenu> 

 

please help me as soon as possible, this is urgent.

thanks
waruni



1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 19 May 2010, 08:11 AM
Hi waruni,

I am not sure what your custom skin is and what the should be the desired appearance for item template, but with he RadMenu definition you sent, here is the css selector to target the nested link buttons:

.rmText a
   {
       text-decoration: none !important;
       color: Silver !important;  
       * * * set more attributes * * *
   }


Best wishes,
Peter
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Menu
Asked by
waruni
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or