Button to stay clicked Color

2 posts, 0 answers
  1. Randy
    Randy avatar
    3 posts
    Member since:
    Mar 2012

    Posted 07 May 2012 Link to this post

    I am using the office2010black skin with my radbuttons.  I wanted the button to stay the orange color it turns to after the user clicks on it.   how do I do this?
  2. Slav
    Admin
    Slav avatar
    1356 posts

    Posted 10 May 2012 Link to this post

    Hello Randy,

    The background of all RadButton states is defined by a sprite image. You can change the default background by modifying the background-position CSS property so that the portion of the image that contains the pressed state background is displayed. The following CSS code shows how to modify the styles in order to achieve the desired effect, please add it in the head section of your page:
    <style type="text/css">
        a.rbSkinnedButton
        {
            background-position: right -88px;
        }
         
        .RadButton .rbDecorated
        {
            background-position: left -110px;
        }
    </style>

    Greetings,
    Slav
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top