Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pagination for dtHeaderTemplate child group #63

Open
Anzil-Aufait opened this issue Nov 27, 2019 · 4 comments
Open

Pagination for dtHeaderTemplate child group #63

Anzil-Aufait opened this issue Nov 27, 2019 · 4 comments

Comments

@Anzil-Aufait
Copy link

Is there any way to add pagination for dtHeaderTemplate child row group.

I want to add pagination here

@Anzil-Aufait
Copy link
Author

@mazdik , are you planning to add this feature or not ??

@mazdik
Copy link
Owner

mazdik commented Dec 16, 2019

try add in template

    <app-pagination
      [totalItems]="table.pager.total"
      [perPage]="table.pager.perPage"
      [currentPage]="table.pager.current"
      [pageSizeOptions]="(table.settings.virtualScroll) ? [] : table.pager.pageSizeOptions"
      (pageChanged)="onPageChanged($event)">
    </app-pagination>
  onPageChanged(event: PageEvent): void {
    this.table.pager.current = event.currentPage;
    this.table.pager.perPage = event.perPage;
    this.table.events.onPage();
    if (this.table.settings.virtualScroll) {
      this.body.scroller.setPageOffsetY(event.currentPage);
    } else {
      if (this.table.clientSide) {
        this.table.loadLocalRows();
      }
    }
    this.table.selection.clearSelection();
  }

@Anzil-Aufait
Copy link
Author

Anzil-Aufait commented Dec 17, 2019

@mazdik , this pagination will apply whole table right ??

I need to add pagination for child items of separate row groups. That is, each row group requires a pagination that is applicable to the children in that row group.

I try some other way for pagination and it's not a complete one, can you look this one ??

@Anzil-Aufait
Copy link
Author

@mazdik , Is there any way to achieve this feature with your package ??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants