FormDecorator doesn't redecorate text.

2 posts, 0 answers
  1. Sean
    Sean avatar
    200 posts
    Member since:
    Nov 2010

    Posted 18 Feb 2011 Link to this post

    Hi All,

    I am a bit new working with the RadFormDecorator. I assume I'm missing something trivial, but I couldn't find anything.

    I have this:

    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
    <telerik:RadFormDecorator ID="RadFormDecorator1" Runat="server" DecoratedControls="All" Skin="Web20" />
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
                    <td class="style4">
                        Auto-Refresh Enabled:</td>
                    <td class="style5">
                    <asp:CheckBox ID="CheckBox1" runat="server" AutoPostBack="True" oncheckedchanged="CheckBox1_CheckedChanged" />
                    <td class="style6">
                        <telerik:RadNumericTextBox ID="RadNumericTextBox1" Runat="server" Label="Auto-Refresh Interval:" MaxValue="60" MinValue="0" ShowSpinButtons="True" Value="0" Width="175px" Enabled="False">
                        <NumberFormat DecimalDigits="0" />
    protected void CheckBox1_CheckedChanged(object sender, EventArgs e)
        RadNumericTextBox1.Enabled = (sender as CheckBox).Checked;

    When the page first loads RadNumericTextBox's Label is grayed out because RadNumberTextBox is disabled. The user checks the checkbox, RadNumericTextBox becomes Enabled, but its font color stays gray.

    I know I could just overwrite the font color, but I'm pretty sure this is something RadFormDecorator should be able to handle.

    Any ideas?

  2. Georgi Tunev
    Georgi Tunev avatar
    7207 posts

    Posted 23 Feb 2011 Link to this post

    Hi Sean,

    Basically, the RadFormDecorator itself does not affect the RadNumericTextBox control - the decorator works with standard HTML controls only. What I would suggest is to make sure that you are using the latest official version of the control (currently it's Q3 SP2) and if the problem persists, to send us a sample project that reproduces the behavior so we can investigate further.

    Georgi Tunev
    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. DevCraft R3 2016 release webinar banner
Back to Top