Jan 03, 2015, 2:20 AM
[CLOSED] Set value of a masked control
On the following example, when the value is TextField is set, the mask is not applied
<!DOCTYPE html>
<html>
<head id="Head1" runat="server">
<script type="text/javascript">
var SetValue = function () {
App._tfd.setValue(12345678);
}
</script>
</head>
<body>
<ext:ResourceManager runat="server" ScriptMode="Debug" />
<ext:Button Text="Set Value" runat="server">
<Listeners>
<Click Handler="SetValue();" />
</Listeners>
</ext:Button>
<ext:TextField ID="_tfd" FieldLabel="Masked Field" AllowBlank="false" runat="server">
<Plugins>
<ext:InputMask Mask="9999-9999" runat="server" />
</Plugins>
</ext:TextField>
</body>
</html>
Last edited by Daniil; Feb 20, 2015 at 7:18 PM.
Reason: [CLOSED]