[CLOSED] how to page with PageProxy

  1. #1

    [CLOSED] how to page with PageProxy

            <ext:GridPanel runat="server" Title="现金流量数据调整">
                    <ext:Store runat="server" ID="s_store" OnReadData="on_read_data_xjllsjtz" PageSize="20" RemotePaging="False"  > 
                            <ext:Model runat="server">
                                    <ext:ModelField Name="VouchId"></ext:ModelField>
                                    <ext:ModelField Name="Ddate"></ext:ModelField> 
                        <ext:Column ID="Column1" runat="server" DataIndex="Ddate" Text="日期"></ext:Column>
                         <ext:Toolbar runat="server">
                                 <ext:PagingToolbar runat="server" StoreID="s_store"></ext:PagingToolbar>
     protected void on_read_data_xjllsjtz(object sender, StoreReadDataEventArgs e)
                int start = e.Start;
                int limit = e.Limit;
                int total = 0;
                var ll = cashflowDataAdjustService.GetCashflowDataAdjust(start, limit,out total);
               // var page = new Paging<CashflowDataAdjust1> (ll, total);
                e.Total = total;
                s_store.DataSource = ll;
    I find that when page loads , the start and the limit is -1,how to pass start and limit from front page. I notice ajaxproxy uses Paging class,
    whether Paging class must use in pageproxy or not?
    Last edited by Daniil; Sep 25, 2013 at 5:26 AM. Reason: [CLOSED]
  2. #2
    Hi @tobros,

    If you are setting up
    then you are not supposed to do paging on server, in the OnReadData handler.

    So, it is confusing. Do you need remote or local paging?

Similar Threads

  1. TabPanel and Store with PageProxy?
    By dmoore in forum 1.x Help
    Replies: 4
    Last Post: Aug 25, 2011, 3:40 PM
  2. [CLOSED] PageProxy
    By jeybonnet in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Feb 21, 2011, 3:26 PM
  3. [CLOSED] Timeout for PageProxy
    By macap in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Oct 07, 2010, 1:20 PM
  4. Exception PageProxy in gridpanel
    By 78fede78 in forum 1.x Help
    Replies: 1
    Last Post: Jul 02, 2010, 12:50 PM
  5. Add pageproxy at runtime
    By 78fede78 in forum 1.x Help
    Replies: 0
    Last Post: Jun 30, 2010, 3:20 PM

Posting Permissions