Nov 14, 2014, 5:38 AM
JS written inside <Change> tag is being called in page load also.
<ext:NumberField ID="NfConversionCost2" runat="server" Width="135px" MaxLength="10"
DecimalPrecision="2" Cls="numbericFieldCss" DisabledClass="DisabledFieldCss"
AllowDecimals="true" AllowNegative="true" StyleSpec="text-align:right;padding-right:7px"
TrimTrailedZeros="false" AllowExponential="false" HideTrigger="true" MouseWheelEnabled="false">
<Listeners>
<SpecialKey Fn="PreventEscape" PreventDefault="true" />
<Change Fn="SetCurrentUPCOnValueChange" CausesValidation="true" />
</Listeners>
</ext:NumberField>
In the above piece of code, I have a function written in the Change tag, which is meant to be fired only when the value in the numberfield is changed. But this function is being called even during the page load. How do I get rid of this. Is there any particular property to be set. This was working fine in ext.net 1.1. Now that I have migrated it from 1.1 to 2.5 facing this problem.