Dec 01, 2011, 9:29 AM
[CLOSED] Change event for numberfield column in grid panel fired only on lost focus.
Hi,
I had posted a query related to editable grid plugin. http://forums.ext.net/showthread.php...9754#post69754
I tried using the validateevent for gridpanel as per the link provided. But the event was not fired on change event of numberfield column. Can you please a code snippet for using validateevent?
Scenario: Validate the numberfield text on change.
Anulekha
I had posted a query related to editable grid plugin. http://forums.ext.net/showthread.php...9754#post69754
I tried using the validateevent for gridpanel as per the link provided. But the event was not fired on change event of numberfield column. Can you please a code snippet for using validateevent?
Scenario: Validate the numberfield text on change.
<ext:gridpanel id="gpAIG" runat="server" striperows="true" anchorhorizontal="100%"
trackmouseover="true" clickstoedit="1" autodatabind="true" autoheight="true"
storeid="AIGItemGridStore" autoexpandcolumn="AIGShortDesc" autowidth="true">
<Plugins>
<ext:EditableGrid ID="egAIG" runat="server" Enabled="true">
</Plugins>
<ColumnModel ID="grdAIGColModel" runat="server">
<Columns>
<ext:Column ColumnID="AIGLineNum" Header="LineNo" DataIndex="LineNum">
</ext:Column>
<ext:Column ColumnID="AIGIssuedQty" Header="IssuedQty" DataIndex="IssuedQty" Align="Right">
</ext:Column>
<ext:Column ColumnID="AIGOpenQty" Header="OpenQty" DataIndex="OpenQty" Hidden="false"
Align="Right">
</ext:Column>
<ext:Column ColumnID="AIGIssueQty" Header="IssueQty" DataIndex="IssueQty" Hidden="true">
<Editor>
<nxtwc:NxtNumberField runat="server" ID="txtAIGIssueQty" Width="100" DataIndex="IssueQty"
AllowBlank="false" AutoDataBind="true">
<Listeners>
<Change Handler="ActionItemGrid.ValidateIssueQty(#{gpAIG},#{txtAIGIssueQty},newValue,oldValue);" />
</Listeners>
</nxtwc:NxtNumberField>
</Editor>
</ext:Column>
</Columns>
</ColumnModel>
<Listeners>
</Listeners>
<SelectionModel>
<ext:RowSelectionModel ID="AIGRowSelectionModel" runat="server" SingleSelect="true" />
</SelectionModel>
<View>
<ext:GridView ID="AIGGridView" runat="server" MarkDirty="false" ForceFit="true" />
</View>
<Listeners>
<Added Handler="this.enableColumnHide = false;" />
<ValidateEdit Handler="ValidateQty(#{gpAIG})" />
</Listeners>
</ext:gridpanel>
ThanksAnulekha
Last edited by Daniil; Dec 05, 2011 at 5:41 PM.
Reason: [CLOSED]