How to change the RadMenu Item backcolor and Image dynamically

3 posts, 0 answers
  1. Jagat
    Jagat avatar
    151 posts
    Member since:
    Jan 2011

    Posted 04 Aug 2011 Link to this post

    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. Jagat
    Jagat avatar
    151 posts
    Member since:
    Jan 2011

    Posted 06 Aug 2011 Link to this post

    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?
  3. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 10 Aug 2011 Link to this post

    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.

Back to Top