[CLOSED] #{gvTransactionList}.getRowsValues() in code behind

  1. #1

    [CLOSED] #{gvTransactionList}.getRowsValues() in code behind

    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>();
    Last edited by Daniil; Sep 03, 2013 at 5:00 AM. Reason: [CLOSED]
  2. #2
    Hi @canusr1,

    Quote Originally Posted by canusr1 View Post
    Is there anyway to get the grid rows data from code behind instead of using the parameter.
    No, there is not.


    Quote Originally Posted by canusr1 View Post
    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.

Similar Threads

  1. GridPanel getRowsValues() bug
    By kakagu in forum 1.x Help
    Replies: 4
    Last Post: Apr 17, 2012, 1:22 AM
  2. GridPanel and getRowsValues()
    By Tallmaris in forum 1.x Help
    Replies: 2
    Last Post: Jul 01, 2011, 8:45 AM
  3. [CLOSED] How to Specify only columns that we want when use getRowsValues()
    By eaglemobile in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Apr 26, 2011, 9:48 AM
  4. getRowsValues but in Code behind
    By EzaBlade in forum 1.x Help
    Replies: 0
    Last Post: Nov 16, 2009, 7:29 AM
  5. grid getRowsValues
    By [WP]joju in forum 1.x Help
    Replies: 4
    Last Post: Oct 06, 2009, 8:13 AM

Posting Permissions