Hi, I'm having touble with the RadNumericTextBox control validation. I'm dynamically creating controls based on a RadComboBox option, after a couple of combo selected item changes the RadNumericTextBox javascript validation stops working. It happens to me only with IE8, it works fine on Firefox 3.6.
Here's an example:
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
<telerik:RadComboBox ID="RadComboBox1" runat="server" AutoPostBack="True">
<Items>
<telerik:RadComboBoxItem Value="0" Text="first" />
<telerik:RadComboBoxItem Value="1" Text="second" />
<telerik:RadComboBoxItem Value="2" Text="third" />
</Items>
</telerik:RadComboBox>
<asp:Panel ID="PanelControls" runat="server">
</asp:Panel>
</telerik:RadAjaxPanel>
And on the code-behind:
Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim selectedValue = CInt(RadComboBox1.SelectedValue)
For i = 0 To selectedValue
Dim dynControl = New RadNumericTextBox
dynControl.ID = selectedValue & "_" & i
PanelControls.Controls.Add(dynControl)
Next
End Sub
Any idea what am I doing wrong? My controls version is 2010.1.309.35.
Note: the same happens to me with the RadDatePicker control.
Here's an example:
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
<telerik:RadComboBox ID="RadComboBox1" runat="server" AutoPostBack="True">
<Items>
<telerik:RadComboBoxItem Value="0" Text="first" />
<telerik:RadComboBoxItem Value="1" Text="second" />
<telerik:RadComboBoxItem Value="2" Text="third" />
</Items>
</telerik:RadComboBox>
<asp:Panel ID="PanelControls" runat="server">
</asp:Panel>
</telerik:RadAjaxPanel>
And on the code-behind:
Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim selectedValue = CInt(RadComboBox1.SelectedValue)
For i = 0 To selectedValue
Dim dynControl = New RadNumericTextBox
dynControl.ID = selectedValue & "_" & i
PanelControls.Controls.Add(dynControl)
Next
End Sub
Any idea what am I doing wrong? My controls version is 2010.1.309.35.
Note: the same happens to me with the RadDatePicker control.