1. #1
    Ext User
    Join Date
    Oct 2007
    Posts
    66
    Vote Rating
    0
    shr1975 is on a distinguished road

      0  

    Default Grid paging without the 'totalProperty' attribute.

    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
    shr1975 is on a distinguished road

      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,505
    Vote Rating
    52
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      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
    shr1975 is on a distinguished road

      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
    shr1975 is on a distinguished road

      0  

    Default


    Hi Animal,

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


    Thanks.

Thread Participants: 1