Sep 13, 2011, 6:42 AM
[CLOSED] GridPanel with Proxy and Summary
Greetings. Whether I don't know you can help me. I have GridPanel with Proxy:
Thanks.
<ext:GridPanel ID="GridPanelMain" runat="server" SelectionMemory="Enabled">
<Store>
<ext:Store ID="StoreMain" runat="server" RemoteSort="true">
<Proxy>
<ext:HttpProxy Method="GET" Url="~/SharedData/DicListExtHandler.ashx" />
</Proxy>
<AutoLoadParams>
<ext:Parameter Name="start" Value="0" Mode="Raw" />
<ext:Parameter Name="limit" Value="50" Mode="Raw" />
<ext:Parameter Name="sort" Value="" />
<ext:Parameter Name="dir" Value="" />
</AutoLoadParams>
<SortInfo Field="Id" Direction="DESC" />
</ext:Store>
</Store>
<BottomBar>
<ext:PagingToolbar ID="PagingToolbar1" runat="server" PageSize="50">
<Plugins>
<ext:SlidingPager />
</Plugins>
<Items>
<ext:ToolbarSeparator runat="server" />
<ext:Label runat="server" Text="Summary Cost:" />
<ext:TextField runat="server" Width="80" Text="$????" ReadOnly="true" />
<ext:ToolbarSeparator runat="server" />
<ext:Label runat="server" Text="Avg Cost:" />
<ext:TextField runat="server" Width="80" Text="$????" ReadOnly="true" />
</Items>
</ext:PagingToolbar>
</BottomBar>
</ext:GridPanel>
Only in "~/SharedData/DicListExtHandler.ashx" i have access to the data to count the sums. I understand that this data could be sent through Proxy:context.Response.Write(JSON.Serialize(new Paging<object>(rangeData, data.Count)));
But in what format and as them to receive in GridPanel the summary data I do not know ((Thanks.
Last edited by Daniil; Sep 19, 2011 at 6:23 PM.
Reason: [CLOSED]