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

Dynamic RadNumericTextBox validation in IE8

2 Answers 64 Views
Input
This is a migrated thread and some comments may be shown as answers.
Santiago
Top achievements
Rank 1
Santiago asked on 15 Sep 2010, 08:03 PM
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.

2 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 16 Sep 2010, 09:36 AM
Hello itu,

I suspect that you have stumbled upon the following issue:

http://www.telerik.com/community/forums/aspnet-ajax/input/rad-text-box-loses-entered-data-and-needs-to-enter-again.aspx#1338783

If your scenario is different, please send a simple demo.

Sincerely yours,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Santiago
Top achievements
Rank 1
answered on 16 Sep 2010, 05:50 PM
You were right! Just focusing another control after the ajax response solved the issue!

Thanks for your help,
Santiago.
Tags
Input
Asked by
Santiago
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Santiago
Top achievements
Rank 1
Share this question
or