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

FormDecorator doesn't redecorate text.

1 Answer 30 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 2
Sean asked on 19 Feb 2011, 01:05 AM
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?


1 Answer, 1 is accepted

Sort by
Georgi Tunev
Telerik team
answered on 23 Feb 2011, 11:30 AM
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.
Asked by
Top achievements
Rank 2
Answers by
Georgi Tunev
Telerik team
Share this question