Jul 23, 2013, 8:20 AM
[CLOSED] Textfield Change Event in Grid Panel
Hello there,
I have 2 Textfields (so called Amount & Rate) in GridPanel.
When I make the changes in "Rate" textfield, I would like to calculate Amount based on updated "Rate".
I use Change OnEvent to fire the calculate function. But this function fire, whatever I make changes in text field.
I would like to fire the event only after key in completely in the textfield. Is there any other event can I use for that situation?
Thanks for the help in advance.
I have 2 Textfields (so called Amount & Rate) in GridPanel.
When I make the changes in "Rate" textfield, I would like to calculate Amount based on updated "Rate".
I use Change OnEvent to fire the calculate function. But this function fire, whatever I make changes in text field.
I would like to fire the event only after key in completely in the textfield. Is there any other event can I use for that situation?
Thanks for the help in advance.
<ext:Column ID="RATE_adj" runat="server" Text="Rate Adj" DataIndex="RATE_adj" Width="80">
<Editor>
<ext:TextField ID="txtRATE_adj" runat="server" Regex="/(^-?\d\d*[\.,]\d*$)|(^-?\d\d*$)|(^-?[\.,]\d\d*$)/" SelectOnFocus="true">
<DirectEvents>
<Change OnEvent="txtRATE_adjChanged">
<ExtraParams>
<ext:Parameter Name="DEFINITION_GRP_ID" Value="#{txtRATE_adj}.getValue()" Mode="Raw" Encode="true"></ext:Parameter>
</ExtraParams>
</Change>
</DirectEvents>
</ext:TextField>
</Editor>
<Renderer Fn="colorRenderer" />
<%--<Renderer Fn="Ext.util.Format.numberRenderer('0,0.00')" />--%>
</ext:Column>
Last edited by Daniil; Jul 30, 2013 at 4:07 AM.
Reason: Please use [CODE] tags, [CLOSED]