View Full Version : [CLOSED] how to page with PageProxy

Sep 18, 2013, 6:31 AM
<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(st art, 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?

Sep 18, 2013, 11:55 AM
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?