or
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
>
function EnableRadNumericTextBox1(enable) {
var RadNumericTextBox1= $("div #divReqPositions [id$='RadNumericTextBox1']")[0].control;
if (enable) {
RadNumericTextBox1.enable();
RadNumericTextBox1._textBoxElement.readOnly = false;
}
else {
RadNumericTextBox1.clear();
RadNumericTextBox1.disable();
}
<
telerik:AjaxSetting
AjaxControlID
=
"rgdMyGrid"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"rgdMyGrid"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
Public
Class
AddressBook
Public
Property
OwnerName
As
String
Public
Property
Friends
As
IList(Of Contact)
Public
Property
Family
As
IList(Of Contact)
Public
Property
Colleagues
As
IList(Of Contact)
End
Class
Public
Class
Contact
Public
Property
Address
As
Address
Public
Property
Name
As
String
Public
Property
Phone
As
String
Public
Property
DateOfBirth
As
Date
Public
ReadOnly
Property
Age
As
Integer
Get
Return
Math.Floor((
Date
.Now - DateOfBirth).Days / 365)
End
Get
End
Property
End
Class
Public
Class
Address
Public
Property
StreetNumber
As
Integer
Public
Property
StreetName
As
String
Public
Property
ZipCode
As
String
End
Class