Radion Button Disable Problem

2 posts, 0 answers
  1. Amir
    Amir avatar
    1 posts
    Member since:
    May 2011

    Posted 07 Jul 2011 Link to this post

    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
  2. Bozhidar
    Admin
    Bozhidar avatar
    677 posts

    Posted 07 Jul 2011 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top