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

RadInputManager->RegExpTextBoxSetting=wrong text after submit

5 Answers 85 Views
Input
This is a migrated thread and some comments may be shown as answers.
Denis
Top achievements
Rank 1
Denis asked on 10 May 2010, 12:24 AM
Hi, I'm using latest internal build 2010.1.504.20.
I have simple layout: textbox for e-mail info and submit button. I use RadInputManager->RegExpTextBoxSetting to manage validations and Empty message:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
<head runat="server"
    <title></title
    <style> 
    </style> 
</head> 
<body> 
    <form id="form1" runat="server"
    <asp:ScriptManager ID="ScriptManager1" runat="server"
    </asp:ScriptManager> 
     
    <asp:TextBox runat="server" ID="EMailText" TextMode="SingleLine" /> 
     
    <asp:LinkButton ID="LinkButton1" ValidationGroup="Contact" runat="server" Text="Send" CssClass="contact-btn" /> 
    <telerik:RadInputManager  ID="ContactRadInputManager" runat="server"
        <telerik:RegExpTextBoxSetting  BehaviorID="EmailBehavior" EmptyMessage="e-mail" ValidationExpression="^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$" Validation-ValidationGroup="Contact" Validation-IsRequired="true" ErrorMessage="error!"
                <TargetControls> 
                    <telerik:TargetInput ControlID="EMailText" /> 
                </TargetControls> 
         </telerik:RegExpTextBoxSetting>     
    </telerik:RadInputManager> 
    </form> 
</body> 
</html> 

If you will try to run this code using latest internal release (for example in FireFox as me) you will see following problems:
1) Note: no post backs before instructions. Click send button (don't enter TextBox so far). You will see expected error message. Enter text box and you will see empty message "e-mail" entered there as text instead of blank field.
2) Note: no post backs before instructions. Click send button (don't enter TextBox so far). You will see expected error message. Refresh page (post back happens), you will see error message that is fine. Enter text box and you will see again error message entered there as text instead of blank field.
3) Note: no post backs before instructions. Enter something in the text box that is not valid e-mail, for example "111". Leave text box. You will see expected error message. Refresh page (post back happens), you will see error message that is fine. Enter text box and you will see again error message entered there as text instead of "111". For me it will be fine is post back will clear state of text boxes of will correctly remember it, but not current behavior.

Now lets add one more text box with the required validation on it:
    <asp:TextBox runat="server" ID="NameText" TextMode="SingleLine" /> 
    <asp:TextBox runat="server" ID="EMailText" TextMode="SingleLine" /> 
     
    <asp:LinkButton ID="LinkButton1" ValidationGroup="Contact" runat="server" Text="Send" CssClass="contact-btn" /> 
    <telerik:RadInputManager  ID="ContactRadInputManager" runat="server"
        <telerik:RegExpTextBoxSetting  BehaviorID="EmailBehavior" EmptyMessage="e-mail" ValidationExpression="^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$" Validation-ValidationGroup="Contact" Validation-IsRequired="true" ErrorMessage="error!"
                <TargetControls> 
                    <telerik:TargetInput ControlID="EMailText" /> 
                </TargetControls> 
         </telerik:RegExpTextBoxSetting>     
        <telerik:TextBoxSetting BehaviorID="NameBehavior" EmptyMessage="name" ErrorMessage="enter name" 
                                Validation-IsRequired="true" Validation-ValidationGroup="Contact"
            <TargetControls> 
                <telerik:TargetInput ControlID="NameText" /> 
            </TargetControls> 
        </telerik:TextBoxSetting>     
              
    </telerik:RadInputManager> 

4) Note: no post backs before instructions. Enter something in the NameText text box for example "111". Enter something valid in the EMailText text box for example "2@2.com". Refresh page (post back happens). You will see that NameText text box looses it's "RadInput_Enabled_Default" style after post back.

Please let me know if I'm doing something wrong or my expectations are not correct. Also provide workarounds if exist or let me know when fixes will be available internally.

Thanks,
Denis.

5 Answers, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 13 May 2010, 10:18 AM
Hi Denis,

Thanks for reporting this observation. We will be shortly addressing it and get back to you with our findings.

All the best,
Tsvetoslav
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
Denis
Top achievements
Rank 1
answered on 27 May 2010, 09:13 PM
I'm just pinging. It has been a while after the last response. Would be nice to know if my expectations are correct and what is your plan about fixes delivery.

Thank you,
Denis.
0
Tsvetoslav
Telerik team
answered on 28 May 2010, 12:17 PM
Hi Denis,

I have sent to your e-mail a telerik dll with a preliminary fix to the RadInputManager. Could you try testing the 4 scenarios on your side again and get back to us with the result.

Thanks for your cooperation.

Regards,
Tsvetoslav
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
Herve
Top achievements
Rank 2
answered on 29 Jun 2010, 01:45 PM
Hi,

I have the same problem is it possible to get the fix ?

Thanks,

Herve
0
Tsvetoslav
Telerik team
answered on 29 Jun 2010, 02:57 PM
Hello Herve,

The fix should be available in the next latest internal build of the controls that you can download from your customer's account.

All the best,
Tsvetoslav
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
Tags
Input
Asked by
Denis
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Denis
Top achievements
Rank 1
Herve
Top achievements
Rank 2
Share this question
or