report viewr pagination

This commit is contained in:
Mohaimen Hasan 2026-11-04 11:15:09 +06:00
parent 1724b5cf52
commit 9aaa243277
2 changed files with 5 additions and 2 deletions

View File

@ -165,8 +165,8 @@
<div class="grid">
<div class="col-12">
<kendo-grid [data]="gridView" (pageChange)="onDataChange($event)" [pageSize]="pageSize"
[pageable]="true" scrollable="virtual" [skip]="skip" [rowHeight]="36"
[(selectedKeys)]="selectedEmpInaPage" style="height: 180px;"
scrollable="virtual" [skip]="skip" [rowHeight]="36"
[(selectedKeys)]="selectedEmpInaPage" style="height: 240px;"
(selectedKeysChange)="onSelectedKeysChange($event)" [selectable]="selectableSettings"
[kendoGridSelectBy]="'employeeID'">
<!--<kendo-grid-checkbox-column [width]="25" [headerClass]="{'text-center': true}"

View File

@ -2415,6 +2415,9 @@ export class ReportViewerComponent implements OnInit {
this.taggedSelection = [];
this.searchEmployees = [];
// Emptying the grid (total 0) makes its virtual scroller restart from the top for the new result.
this.skip = 0;
this.loadData();
this.employeeService.getSearchEmployee(srcManager)
.subscribe(
(resp: any) => {