Results 1 to 5 of 5

Thread: Grid paging without the 'totalProperty' attribute.

  1. #1
    Ext User
    Join Date
    Oct 2007
    Posts
    66
    Vote Rating
    0
      0  

    Default Grid paging without the 'totalProperty' attribute.

    Hi,

    Is there any way to achieve paging on a grid without having to use the 'totalProperty' attribute? Our server code fetches the total count of rows only under certain conditions.

  2. #2
    Ext User
    Join Date
    Oct 2007
    Posts
    66
    Vote Rating
    0
      0  

    Default

    This is required since there may be cases where the total count of rows may not be known.

  3. #3
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,615
    Vote Rating
    55
      0  

    Default

    You'll have to override some methods in PagingToolbar, or subclass it to make it not care about what the Store's getTotalCount returns, and have it fill in that value when it reads a page which returns with less than "pageSize" rows in.

  4. #4
    Ext User
    Join Date
    Oct 2007
    Posts
    66
    Vote Rating
    0
      0  

    Default

    Which methods in PagingToolbar will I have to override?

    Could you please give me a code sample?

  5. #5
    Ext User
    Join Date
    Oct 2007
    Posts
    66
    Vote Rating
    0
      0  

    Default

    Hi Animal,

    Could you please provide me with some more information/code samples on how to achieve this?


    Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •