Hi,
I tired latest verion Radcontrol Q2 2012 and found out the RadMaskedTextBox doesn't work with RegularExpressionValidator on IE 8 when you put wrong format input and tab out the RadMaskedTextBox. TheRegularExpressionValidator doesn't show the error message even if the input doesn't match with Validation Expression. But works on the Firefox 12.
Note: I mean tab out not click button.
Following is my testing code:
I also tested on your demo site and same behavior:
http://demos.telerik.com/aspnet-ajax/input/examples/common/validation/defaultcs.aspx
Alan
I tired latest verion Radcontrol Q2 2012 and found out the RadMaskedTextBox doesn't work with RegularExpressionValidator on IE 8 when you put wrong format input and tab out the RadMaskedTextBox. TheRegularExpressionValidator doesn't show the error message even if the input doesn't match with Validation Expression. But works on the Firefox 12.
Note: I mean tab out not click button.
Following is my testing code:
<
form
id
=
"form1"
runat
=
"server"
>
<
telerik:RadScriptManager
ID
=
"RadScriptManager1"
runat
=
"server"
/>
<
telerik:RadMaskedTextBox
ID
=
"RadMaskedTextBox1"
runat
=
"server"
Mask
=
"(###)-######"
>
</
telerik:RadMaskedTextBox
>
<
asp:RequiredFieldValidator
Display
=
"Dynamic"
ID
=
"MaskedTextBoxRequiredFieldValidator"
runat
=
"server"
ErrorMessage
=
"Please, enter a phone number."
ControlToValidate
=
"RadMaskedTextBox1"
></
asp:RequiredFieldValidator
>
<
asp:RegularExpressionValidator
Display
=
"Dynamic"
ID
=
"MaskedTextBoxRegularExpressionValidator"
runat
=
"server"
ErrorMessage
=
"Format is (###)-######"
ControlToValidate
=
"RadMaskedTextBox1"
ValidationExpression
=
"\(\d{3}\)-\d{6}"
/>
<
asp:Button
ID
=
"Button1"
runat
=
"server"
Text
=
"Postback"
OnClick
=
"Button1_Click"
>
</
asp:Button
>
<
asp:Label
ID
=
"lblMessage"
runat
=
"server"
></
asp:Label
>
</
form
>
I also tested on your demo site and same behavior:
http://demos.telerik.com/aspnet-ajax/input/examples/common/validation/defaultcs.aspx
Alan