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

FormDecorator doesn't redecorate text.

1 Answer 30 Views
FormDecorator
This is a migrated thread and some comments may be shown as answers.
Sean
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:RadScriptManager>
<telerik:RadFormDecorator ID="RadFormDecorator1" Runat="server" DecoratedControls="All" Skin="Web20" />
 
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
    <fieldset>
        <legend>Settings</legend>
        <table>
            <tr>
                <td class="style4">
                    Auto-Refresh Enabled:</td>
                <td class="style5">
                <asp:CheckBox ID="CheckBox1" runat="server" AutoPostBack="True" oncheckedchanged="CheckBox1_CheckedChanged" />
                </td>
                <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" />
                    </telerik:RadNumericTextBox>
                </td>
            </tr>
        </table>
    </fieldset>
</telerik:RadAjaxPanel>
 
</form>
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?

Thanks

1 Answer, 1 is accepted

Sort by
0
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.

Regards,
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.
Tags
FormDecorator
Asked by
Sean
Top achievements
Rank 2
Answers by
Georgi Tunev
Telerik team
Share this question
or