Sep 06, 2013, 3:08 AM
[FIXED] [2.3] 2.2 Possible a bug on remote validation
Hi,
I want to disable remote validation when field readonly, but I find if readonly field got foucs(you can click on it), then type any key use keyboard, the remove validation will invoke.
Then I find this post http://forums.ext.net/showthread.php...idation-on-off
Any way, it's a solution to disable remote validation, but I prefer the solution use Before="return false;" to use activateRemoteValidation and deactivateRemoteValidation, so do you think it's a bug?
I want to disable remote validation when field readonly, but I find if readonly field got foucs(you can click on it), then type any key use keyboard, the remove validation will invoke.
<%@ Page Language="C#" %>
<script runat="server">
protected void TextField_Validation(object sender, RemoteValidationEventArgs e)
{
if (Convert.ToString(e.Value) == "abc")
e.Success = true;
}
</script>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<ext:ResourceManager runat="server"></ext:ResourceManager>
<ext:Viewport ID="Viewport1" runat="server">
<Items>
<ext:TextField ID="TextField1" runat="server" FieldLabel="Name"
IsRemoteValidation="true" ReadOnly="true" Text="bcd">
<RemoteValidation OnValidation="TextField_Validation">
</RemoteValidation>
</ext:TextField>
</Items>
</ext:Viewport>
</body>
</html>
I try to use Before to disabled remote validation like this:<RemoteValidation OnValidation="TextField_Validation" Before="return false;">
</RemoteValidation>
But, "return false;" only can prevent remote validation call server, the loading icon will appear follow the field yet.Then I find this post http://forums.ext.net/showthread.php...idation-on-off
Any way, it's a solution to disable remote validation, but I prefer the solution use Before="return false;" to use activateRemoteValidation and deactivateRemoteValidation, so do you think it's a bug?
Last edited by Daniil; Sep 06, 2013 at 2:55 PM.
Reason: [FIXED] [2.3]