PDA

View Full Version : [CLOSED] #{gvTransactionList}.getRowsValues() in code behind



canusr1
Aug 23, 2013, 4:50 AM
Hello there!

I have a button "Export" to export data from grid panel to .xls.

I passed the parameter for raw row data by "#{gvTransactionList}.getRowsValues()" and get the parameter from code behind.

But when I click on this "Export" button and I got the "Stop running javascript" error and my IE browser is not responding.

Is there anyway to get the grid rows data from code behind instead of using the parameter.

Thank you.



<ext:Button ID="btnNewExport" runat="server" Text="Export to Excel2" Icon="Disk">
<DirectEvents>
<Click OnEvent="ExportClick" Before="return #{sTransaction}.isDirty();">
<ExtraParams>
<ext:Parameter Name="data" Value="#{sTransaction}.getChangedData()" Mode="Raw" Encode="true" />
<ext:Parameter Name="Values" Value="#{gvTransactionList}.getRowsValues()" Mode="Raw" Encode="true" />
</ExtraParams>
<%--<EventMask MinDelay="3000" Msg="Saving Data..."></EventMask>--%>
</Click>
</DirectEvents>
<Listeners>
<Click Handler="#{gvTransactionList}.editingPlugin.completeEdit(); Ext.net.Mask.show({ msg : 'Saving Data...' }); CompanyX.DoSomething();" />
</Listeners>
</ext:Button>




List<Transaction> _TransactionList = new StoreDataHandler(e.ExtraParams["Values"]).ObjectData<Transaction>();

Daniil
Aug 23, 2013, 4:58 AM
Hi @canusr1,



Is there anyway to get the grid rows data from code behind instead of using the parameter.


No, there is not.




But when I click on this "Export" button and I got the "Stop running javascript" error and my IE browser is not responding.


Please provide a full test case to reproduce.