[CLOSED] Avoid Store Autoload on HTTP Proxy

  1. #1

    [CLOSED] Avoid Store Autoload on HTTP Proxy

    Hii,
    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]
  2. #2
    don't mind, i solved it
  3. #3
    Hi I would like to accomplish the same thing. What did you do?

    I was able to do it but building my grid in the code behind. But I want to have my grid in the markup instead.

    Thank you.

Similar Threads

  1. [CLOSED] store.proxy.ro question
    By deejayns in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jan 04, 2012, 8:17 PM
  2. local paging using http proxy and partialview
    By craig2005 in forum 1.x Help
    Replies: 9
    Last Post: Jan 05, 2011, 7:04 PM
  3. [CLOSED] set Proxy URL of Store at runtime.
    By farisqadadeh in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Dec 22, 2010, 7:11 AM
  4. autoload datastore records from http proxy
    By hnafar in forum 1.x Help
    Replies: 1
    Last Post: Feb 11, 2010, 7:50 AM
  5. Replies: 0
    Last Post: Oct 27, 2009, 9:46 AM

Posting Permissions