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:
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
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