[1.0] Grid paging

  1. #1

    [1.0] Grid paging

    Hi,

    via DirectMethod I set the data source of a grid by
    this.grid.Store[0].DataSource = ds;
    this.grid.Store[0].DataBind();
    There is a PagingToolbar with a PageSize of 25.

    The first time data is loaded, paging does not take effect.
    It shows all available data in one page. The paging toolbar displays "Page 1 of 64, Entries 1 - 1583".

    If I switch to the next page, paging now works correctly. The toolbar displays 25 rows from 26 - 50.
    Switching back to page 1 shows rows 1 - 25.

    I think it has something to do with setting the data source via DirectMethod. Is this a bug or am I missing something?
  2. #2
    Hi,

    How your Store is configured? I guess there is remote data. If so, the following <AutoloadParams> should solve the problem

    Example
    <Store>
        <ext:Store runat="server" ...>
            ...
            <AutoLoadParams>
                <ext:Parameter Name="start" Value="0" Mode="Raw" />
                <ext:Parameter Name="limit" Value="25" Mode="Raw" />
            </AutoLoadParams>
        </ext:Store>
    </Store>
  3. #3
    Thanks, this solved the problem!

    The Store is not really configured. It has only a JsonReader. I thought it would work just defining the paging toolbar.
  4. #4
    Yes, it's enough in common case, bot when it deals with data binding in DirectMethod the respective <AutoloadParams> is required.

    So, it's not a bug, therefore I'm moving this thread to Help forum. Do you mind?:)
  5. #5
    Ok, thanks again! :)

Similar Threads

  1. Replies: 11
    Last Post: Jun 13, 2012, 4:53 PM
  2. Grid Paging issue
    By pooja in forum 1.x Help
    Replies: 3
    Last Post: Jan 05, 2012, 10:34 AM
  3. Grid paging
    By Yannis in forum 1.x Help
    Replies: 4
    Last Post: Aug 27, 2010, 1:29 PM
  4. Replies: 1
    Last Post: Oct 09, 2009, 3:46 AM

Posting Permissions