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

DisbaledImageUrl on client side disabling

1 Answer 21 Views
Button
This is a migrated thread and some comments may be shown as answers.
Jani
Top achievements
Rank 1
Jani asked on 07 Dec 2011, 10:05 AM
Hi

How can the I activate the disabled image while disabling the button on the client side using button.set_enabled(false)?

Cheers,
Jani

1 Answer, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 09 Dec 2011, 05:39 PM
Hello Jani,

Please note that from the Q3 2011 release of the RadControls for ASP.NET AJAX, the RadButton has a property DisabledImageUrl. Via this property you can set a image of your choosing for the disabled state of the button control. In addition to this you can remove the transparency effect so that the RadButton image appears active when it is disabled, as you requested. This can be achieved by specifying the CssClass property of the RadButton with a CSS class that has the following structure:
.CustomDisabledButton
{
    opacity:1 !important;
}

For your convenience I have attached a sample page, implementing the suggested solution. Please use it as a reference for your further development.

All the best,
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
Jani
Top achievements
Rank 1
Answers by
Slav
Telerik team
Share this question
or