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

Radion Button Disable Problem

1 Answer 91 Views
FormDecorator
This is a migrated thread and some comments may be shown as answers.
Amir
Top achievements
Rank 1
Amir asked on 07 Jul 2011, 06:29 AM
Hi

I'm using Telerik Controls in our current project. Radio button is not displayed correctly when it is in disabled mode. I open the RadioButtonSprit picture and found out that there is no image for radio button disabled mode same as combox. Do you know any way to solve this problem?

Regards
Amir .H

1 Answer, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 07 Jul 2011, 08:10 AM
Hello Amir,

I am not sure which version of the controls you are using, but with the latest, everything works fine. Look at the following code:

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <title></title>
    <style type="text/css">
         
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadFormDecorator ID="RFD1" runat="server" DecoratedControls="All" Skin="Hay" />
    <asp:RadioButton ID="rad1" runat="server" Text="Enabled Radio" />
    <asp:RadioButton ID="rad2" runat="server" Text="Disabled Radio" Enabled="false" />
    </form>
</body>
</html>

The result could be seen at the attached radioDisabled.gif.

Attached is also RadioButtonSprites.png which is the sprite for the Hay skin. The last two radios in the sprite are the disabled states for checked and unchecked state for radio button.

All the best,
Bojo
the Telerik team
Explore the entire set of ASP.NET AJAX controls we offer here and browse the myriad online demos to learn more about the components and the features they incorporate.
Tags
FormDecorator
Asked by
Amir
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Share this question
or