I am using RadControls for ASP.NET Ajax Q2 2010 NET 35 (2010.2.826.35)
I have set the radNumericTextbox ReadOnlyStyle as
<telerik:RadNumericTextBox ID="RadNumericTextBox1" Runat="server" DataType="System.Int32" MaxValue="5000" MinValue="0" SelectionOnFocus="None" Skin="Sunset" Width="50px" Enabled="false"> <DisabledStyle BackColor="#EEEEEE" /> <ReadOnlyStyle BackColor="#EEEEEE" /> <EnabledStyle HorizontalAlign="Center" /> <NumberFormat DecimalDigits="0" /> </telerik:RadNumericTextBox>When I set the enable to true and readOnly to false on client side as
function EnableRadNumericTextBox1(enable) { var RadNumericTextBox1= $("div #divReqPositions [id$='RadNumericTextBox1']")[0].control; if (enable) { RadNumericTextBox1.enable(); RadNumericTextBox1._textBoxElement.readOnly = false; } else { RadNumericTextBox1.clear(); RadNumericTextBox1.disable(); }If the rad control has value and I need to change the style to enabling style (Enable= true,ReadOnly= false) on client side by using the javascript function above the background of the control (RadNumeric control) stay gray untill I move the mouse over the control.
any help would be appreciated.