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

Button to stay clicked Color

1 Answer 39 Views
Button
This is a migrated thread and some comments may be shown as answers.
Randy
Top achievements
Rank 1
Randy asked on 07 May 2012, 07:47 PM
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?

1 Answer, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 10 May 2012, 09:20 AM
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.
Tags
Button
Asked by
Randy
Top achievements
Rank 1
Answers by
Slav
Telerik team
Share this question
or