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:
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:
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.
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.