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

Change attributes of a button within a menu item

2 Answers 58 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Clive Hoggar
Top achievements
Rank 1
Clive Hoggar asked on 07 Mar 2009, 05:29 PM
Hi

I am trying to change attributes of an image button ('MemberLoginButton') to give it rollover
characteristcs by adding attributes in the code behind on page load.

However I am have trouble finding the right path  to the MemberLoginButton which is contained within
a submenu RadMenuItem
I have tried RadMenu.Items.MemberLoginButton ...  and various other combinations but
Intellisense always says they are not members of RadMenu etc

the page code is like
             
<telerik:RadMenu ID="RadMenu2" Runat="server" Skin="Black"        
 
<telerik:RadMenuItem runat="server" Text="&nbsp;CELLAR CLUB">  
<Items> 
<ItemTemplate> 
<asp:ImageButton ID="MemberLoginButton" runat="server" ImageAlign="Right"   
ImageUrl="~/images/buttons/rt-arrow-grey.gif" /> 


Please advise me how to address this control!

Thanks

Clive

2 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 09 Mar 2009, 08:35 AM
Hello Clive,

Please check this help article: Accessing Controls inside Templates

Greetings,
Yana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Clive Hoggar
Top achievements
Rank 1
answered on 11 Mar 2009, 08:52 PM
Thanks. I figured it out from the examples..

Clive
Tags
Menu
Asked by
Clive Hoggar
Top achievements
Rank 1
Answers by
Yana
Telerik team
Clive Hoggar
Top achievements
Rank 1
Share this question
or