Change Button Color on Click

2 posts, 0 answers
  1. Francesco Vivaldi
    Francesco Vivaldi avatar
    13 posts
    Member since:
    Nov 2009

    Posted 12 May 2011 Link to this post

    Hi, i have a radtoolbar, with 5 button.

    when i click on a button i want to change teh background color of the clicked button.

    my button:
    A=red-> response.redirect(a.aspx)

    if i click on A button, A button must become red
    if i click on B button, B button must become blue.

    The toolbar is in a MasterPage, when i click on a button i do a response.redirect to a specific page linked to the button.

    if i click on A button i redirect to A.aspx page, and in masterpage the A button on radtoolber must become red.

    how i can do it ?
  2. Kate
    Kate avatar
    1898 posts

    Posted 17 May 2011 Link to this post

    Hi Francesco Vivaldi,

    You could use OnClientButtonClicking event and attach an event handler to assign diffrent backgroundColor to the different buttons. Here is a help article with detailed explanation how you can find a particular button. Then using the desired button you can assign color as follows:"ff8080";


    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.

  3. Telerik UI for ASP.NET Core is out
Back to Top