Dear Team,
I am facing issue in grid scrolling.
Issue is that when I scroll grid up to down it working fine but when I go to down from up it comes to center.
It go to up when I do down from up thrice.
Please find the attached video file for better understanding of my problem.
Below code which I used
<ejs-grid *ngIf="displayGrid" #grid [editSettings]="editSettings" [dataSource]='data' gridLines="Both"
[enableHover]="gridDataSetting?.IsMouseHover" [allowSorting]='gridDataSetting?.IsSortingAllow'
[sortSettings]='initialSort' [contextMenuItems]="contextMenuItems"
(contextMenuClick)='contextMenuClick($event)' allowExcelExport=true allowPdfExport=true allowResizing=true
[allowMultiSorting]=true [enableVirtualization]="enableVirtualization" [allowSelection]="true"
[selectionSettings]="selectOptions" (click)='click($event)' height="100%" (dataBound)='dataBound()'
rowHeight="25" [allowTextWrap]='gridDataSetting?.IsWrapText' (queryCellInfo)='customiseCell($event)'
(pdfHeaderQueryCellInfo)='pdfHeaderQueryCellInfo($event)' (pdfExportComplete)='pdfExportComplete()'
(pdfQueryCellInfo)='pdfQueryCellInfo($event)'
[ngClass]="{'carddesign': gridDataSetting?.PortraitReportType=='CARD' , 'cardinalldevice': gridDataSetting?.PortraitReportType=='CARDINALLDEVICE' }"
(excelExportComplete)='excelExportComplete($event)' (keyPressed)="keyPressed($event)"
(keydown)="keyDown($event)" (cellSaved)="cellSaved($event)" (cellSave)="cellSave($event)"
headerTemplate="headerTemplate($event)" [aggregates]="aggregateColumn" (cellEdit)="cellEdit($event)"
(cellSelected)="cellSelected($event)" (actionBegin)='onActionBegin($event)' [searchSettings]='searchOptions'
[columns]="headerColumnList" (excelQueryCellInfo)='excelQueryCellInfo($event)'
(actionComplete)='onActionComplete($event)' (created)='created($event)'
(rowDataBound)='rowDataBound($event)' [pageSettings]='options' [groupSettings]="groupSetting"
[allowGrouping]="uiGridSetting.allowGrouping" [enableAltRow]="gridDataSetting?.EnableAltRow"
[disableHtmlEncode]='true' allowFiltering='true' [filterSettings]='filterSettings' (load)="load($event)"
(exportGroupCaption)="exportGroupCaption($event)">
</ejs-grid>
</div>
load(evt) {
const rowHeight = 25
let offsetHeight = (this.gridObj.element.parentElement.offsetHeight / rowHeight);
offsetHeight = +((offsetHeight * 2) + 10).toFixed();
this.gridObj.pageSettings.pageSize = offsetHeight;
}
Regards
Nagendra Gupta
Attachment:
Google_Chrome_20230210_172609_dc366d57.zip