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

How to change the RadMenu Item backcolor and Image dynamically

2 Answers 118 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Jagat
Top achievements
Rank 1
Jagat asked on 05 Aug 2011, 01:06 AM
Hello,

  I have a radmenu in the master page. In one of my content pages, I have a timer. The timer checks for a value in the database and based on that value, I would like to change the backcolor and ImageUrl of the menu item(actually,would like the menu item to glow) which means that there is a new message. Right now, I am doing it like this which is of course not working

Am i missing something ?

code- behind
in the timer tick event.( content page)

  Radmenu1.items(5).items(2).backcolor = drawing.color.red
 Radmenu1.items(5).items(2).ImageUrl ="Images/Newmessage.png"

How do I make the menu item glowing? Is there a way to do that?

Appreciate the help
Thanks

2 Answers, 1 is accepted

Sort by
0
Jagat
Top achievements
Rank 1
answered on 07 Aug 2011, 04:13 AM
Hello,

 I tried it in different way. I am getting the desired output only after the postback . But i don't want the postback there , So I put the Radmenu(in Master page) in the update panel. The problem is, in the asyn postback trigger, which control id do I need to mention. I couldn't give the control ID of the timer which is in the content page.How do i do this?
0
Kate
Telerik team
answered on 10 Aug 2011, 04:04 PM
Hello Jagat,

I would suggest that you try to use one of our controls - either the RadAjaxManager or the RadAjaxPanel that allow ajaxifying other controls that normally would work with postbacks. Take a look at the above mentioned help articles for more information on how to use them. 

Best wishes,
Kate
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Menu
Asked by
Jagat
Top achievements
Rank 1
Answers by
Jagat
Top achievements
Rank 1
Kate
Telerik team
Share this question
or