Oct 17, 2012, 7:38 AM
[CLOSED] NumberField bug or work as wanted?
Hello
See that:
So the question in title.
See that:
<%@ Page Language="C#" %>
<%@ Register assembly="Ext.Net" namespace="Ext.Net" tagprefix="ext" %>
<!DOCTYPE html>
<html>
<head id="Head1" runat="server">
<title>TimeField Control Variations - Ext.NET Examples</title>
<link href="/resources/css/examples.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" language="javascript">
var ValueSpinUp = function ()
{
alert("SpinUp " + App.nbTest.value);
}
var ValueSpinDown = function ()
{
alert("SpinDown " + App.nbTest.value);
}
var ValueSpin = function ()
{
alert("Spin " + App.nbTest.value);
}
</script>
</head>
<body>
<form id="Form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" Locale="en-US" />
<ext:NumberField
id="nbTest"
runat="server"
Text="10">
<Listeners>
<SpinUp Fn="ValueSpinUp"></SpinUp>
<SpinDown Fn="ValueSpinDown"></SpinDown>
<Spin Fn="ValueSpin"></Spin>
</Listeners>
</ext:NumberField>
</form>
</body>
When entering the 3 events, the value of the Number field is not increased/decreased, it is after events are fired, so the only way to use the spinup/spindown value is to add or substract 1 from the getted value, and it render usefull the use of the spin event because when used we didnd't know if it is up or down.So the question in title.
Last edited by Daniil; Oct 18, 2012 at 1:14 PM.
Reason: [CLOSED]