Aug 27, 2010, 9:24 AM
[CLOSED] Avoid Store Autoload on HTTP Proxy
Hii,
Supposed that i have a gridpanel with HTTP Proxy DataSource like this:
Supposed that i have a gridpanel with HTTP Proxy DataSource like this:
<ext:GridPanelID="GridPanel1"
runat="server"
Title="Employees"
Frame="true"
Height="300">
<Store>
<ext:StoreID="Store1"runat="server">
<Proxy>
<ext:HttpProxyJson="true"Method="POST"Url="~/Random/WebServiceLabs.asmx/TestPaging"/>
</Proxy>
<AutoLoadParams>
<ext:ParameterName="start"Value="0"Mode="Raw"/>
<ext:ParameterName="limit"Value="5"Mode="Raw"/>
</AutoLoadParams>
<Reader>
<ext:JsonReaderRoot="d.Data"TotalProperty="d.TotalRecords">
<Fields>
<ext:RecordFieldName="PropertyName"/>
<ext:RecordFieldName="PropertyValue"/>
</Fields>
</ext:JsonReader>
</Reader>
</ext:Store>
</Store>
<ColumnModelID="ColumnModel1"runat="server">
<Columns>
<ext:ColumnColumnID="PropertyName"Header="Property Name"DataIndex="PropertyName"Width="220"Sortable="true"/>
<ext:ColumnHeader="Property Value"DataIndex="PropertyValue"Width="230"/>
</Columns>
</ColumnModel>
<SelectionModel>
<ext:RowSelectionModelID="RowSelectionModel1"runat="server"/>
</SelectionModel>
<BottomBar>
<ext:PagingToolbarID="PagingToolbar1"
runat="server"
PageSize="5"
DisplayInfo="true"
DisplayMsg="Displaying plants {0} - {1} of {2}"
EmptyMsg="No plants to display"
/>
</BottomBar>
<LoadMaskShowMask="true"/>
</ext:GridPanel>
How do I prevent from autoloading data to the gridpanel1? My intention is to show a blank grid to the user until they klik a button. I tried with autoload = false and then on button click event i called DataGrid1.Reload() result to incorrect paging information. Thx
Last edited by Daniil; Aug 27, 2010 at 12:20 PM.
Reason: [CLOSED]