Jul 17, 2013, 4:32 AM
[CLOSED] Help in gridpanel's cell focus
Hi there,
After edit the cells and click on the "Save" button, I would like to get this active edited cells in my gridpanel.updated list.
If I click on any other cells or inside the grid panel, that's working fine.
So, I'm thinking of focusing on any other cells before click on "Save" as follow though I'm not so sure its the solution.
I'm a very newbie to Ext.net and I'm not so sure how could able to achieve to focus in other cells before clicking on "Save" button.
Appreciate your help in advance.
Thanks.
After edit the cells and click on the "Save" button, I would like to get this active edited cells in my gridpanel.updated list.
ChangeRecords<InvoiceLine> _Invoice = new StoreDataHandler(e.ExtraParams["data"]).BatchObjectData<InvoiceLine>();
foreach (InvoiceLine updated in _Invoice.Updated)
{
updateList.Add(updated);
}
But now if I did not focus on any other cells after editing then click on "Save" button, I cannot get the Updated data rows.If I click on any other cells or inside the grid panel, that's working fine.
So, I'm thinking of focusing on any other cells before click on "Save" as follow though I'm not so sure its the solution.
<ext:Button ID="btnSave" runat="server" Text="Save" Icon="Disk" Visible="true">
<DirectEvents>
<Click OnEvent="SaveClick" Before="#{gvInvoiceList}.stopEditing(true)">
<ExtraParams>
<ext:Parameter Name="data" Value="#{sInvoiceLine}.getChangedData()" Mode="Raw" Encode="true" />
<ext:Parameter Name="Values" Value="#{gvInvoiceList}.getRowsValues()" Mode="Raw" Encode="true" />
</ExtraParams>
</Click>
</DirectEvents>
</ext:Button>
If I do that in button click's event, I'm having "Object does not support this property or method" error.I'm a very newbie to Ext.net and I'm not so sure how could able to achieve to focus in other cells before clicking on "Save" button.
Appreciate your help in advance.
Thanks.
Last edited by Daniil; Jul 17, 2013 at 3:13 PM.
Reason: Please use [CODE] tags, [CLOSED]