Results 1 to 4 of 4

Thread: Pagination with groups

  1. #1
    Sencha User
    Join Date
    Mar 2008
    Location
    Marietta, GA
    Posts
    93

    Default Pagination with groups

    Has anyone successfully solved paging with groups?

    I want the pagination to be based on the number of groups, not the number of records.
    For example:
    - I have 30 contacts.
    - Each contact has 0 to n addresses.
    - Let's say I have pages of 10 contacts. Regardless of how many total addresses are displayed (the grid scrolls if there are bunches), I'd like the grid to paginate on the 11th, 21st, etc. contact. (The pagination would be completely ignoring the total number of records returned from the dataset, 'cause 10 contacts might return 35 total records, 3.5 addresses per contact).

    You could fool with the dataset and return address records as subsets of a contact, but then you lose all the fanciness that comes with grouping.

    Any advice would be appreciated.

    Jason
    Don't measure excellence against others, but rather against the best implementation of yourself.

  2. #2
    Ext Premium Member
    Join Date
    Jan 2008
    Posts
    31

    Default

    Hi Jason,

    did you solve the problem?


    Regards,

    Martin

  3. #3
    Sencha User
    Join Date
    Mar 2008
    Location
    Marietta, GA
    Posts
    93

    Default

    Nope, went a different way with it...actually - just left out paging altogether.

    Somebody smarter than me will figure it out eventually and I'll use their suggestion, though, I'm hoping.

    J
    Don't measure excellence against others, but rather against the best implementation of yourself.

  4. #4
    Ext JS Premium Member smokeman's Avatar
    Join Date
    Jul 2007
    Posts
    475

    Default

    I'm in same boat

Posting Permissions

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