I have a nested, selectable grid. When I click on the check that are below the scope of the window it causes the grid to auto scroll all the way back to the top. Selecting by clicking on the cells does not cause this to happen. Only when I click on the checkbox itself.
<
kendo-grid
class
=
"kendo-grid"
[data]="gridView"
filterable
=
"menu"
(dataStateChange)="dataStateChange($event)"
[pageable]="{ pageSizes: [10, 25, 50], previousNext: true, buttonCount: 5, info: true }"
[pageSize]="state.take"
[skip]="state.skip"
(pageChange)="pageChange($event)"
[resizable]="true"
[sortable]="{ allowUnsort: true, mode: 'multiple' }"
[sort]="state.sort"
[selectable]="selectableSettings"
[kendoGridSelectBy]="'id'"
[selectedKeys]="selections"
(selectedKeysChange)="onSelectedKeysChange($event)"
(cellClick)="transactionSelected($event)"
[rowClass]="rowCallback"
>
<
kendo-grid-checkbox-column
[hidden]="group?.groupId !== 1"
width
=
"50"
></
kendo-grid-checkbox-column
>
<
kendo-grid-column
field
=
"transactionId"
title
=
"ID"
width
=
"90"
>
<
ng-template
kendoGridFilterMenuTemplate let-filter
let-column
=
"column"
let-filterService
=
"filterService"
>
<
kendo-grid-numeric-filter-menu
[column]="column" [filter]="filter" [filterService]="filterService">
</
kendo-grid-numeric-filter-menu
>
</
ng-template
>
</
kendo-grid-column
>
<
kendo-grid-column
field
=
"effectiveDate"
title
=
"Date"
width
=
"100"
format
=
"MM/dd/yyyy"
>
<
ng-template
kendoGridFilterMenuTemplate let-filter
let-column
=
"column"
let-filterService
=
"filterService"
>
<
kendo-grid-date-filter-menu
[column]="column" [filter]="filter" [filterService]="filterService"> </
kendo-grid-date-filter-menu
>
</
ng-template
>
</
kendo-grid-column
>
<
kendo-grid-column
field
=
"amount"
title
=
"Amount"
width
=
"110"
[format]="{ style: 'currency' }">
<
ng-template
kendoGridFilterMenuTemplate let-filter
let-column
=
"column"
let-filterService
=
"filterService"
>
<
kendo-grid-numeric-filter-menu
[column]="column" [filter]="filter" [filterService]="filterService">
</
kendo-grid-numeric-filter-menu
>
</
ng-template
>
<
ng-template
kendoGridCellTemplate let-dataItem>
<
span
*
ngIf
=
"dataItem.debitCredit == 'DR'"
>-</
span
>{{ dataItem.amount | currency: 'USD' }}
</
ng-template
>
</
kendo-grid-column
>
<
kendo-grid-column
field
=
"transactionTypeVerbose"
title
=
"Type"
width
=
"120"
>
<
ng-template
kendoGridFilterMenuTemplate
let-column
=
"column"
let-filter
=
"filter"
let-filterService
=
"filterService"
>
<
multicheck-filter
[isPrimitive]="true"
[field]="column.field"
[filterService]="filterService"
[currentFilter]="filter"
[data]="distinctPrimitive(column.field)"
>
</
multicheck-filter
>
</
ng-template
>
</
kendo-grid-column
>
<
kendo-grid-column
field
=
"source"
title
=
"Source"
width
=
"120"
>
<
ng-template
kendoGridFilterMenuTemplate
let-column
=
"column"
let-filter
=
"filter"
let-filterService
=
"filterService"
>
<
multicheck-filter
[isPrimitive]="true"
[field]="column.field"
[filterService]="filterService"
[currentFilter]="filter"
[data]="distinctPrimitive(column.field)"
>
</
multicheck-filter
>
</
ng-template
>
</
kendo-grid-column
>
<
kendo-grid-column
field
=
"details"
title
=
"Details"
> </
kendo-grid-column
>
<
kendo-grid-column
field
=
"transactionCommentFirst"
title
=
"Comment"
> </
kendo-grid-column
>
<
kendo-grid-column
data-filterable
=
"false"
width
=
"140"
>
<
ng-template
kendoGridCellTemplate let-dataItem>
<
i
*
ngIf
=
"!dataItem.isRemoving && user.canWrite"
(click)="openMoveToPendingModal(dataItem)"
class
=
"fa fa-2x fa-share cursor-pointer text-success mr-2"
aria-hidden
=
"true"
placement
=
"top"
ngbTooltip
=
"Move Transaction to Pending Resolution"
container
=
"body"
></
i
>
<
app-nori-comments
[dataItem]="dataItem" [user]="user"></
app-nori-comments
>
<
i
*
ngIf
=
"dataItem.isRemoving && user.canWrite"
class
=
"fa fa-2x fa-circle-o-notch fa-spin fa-fw text-primary cursor-pointer mr-2"
aria-hidden
=
"true"
></
i
>
<
app-audit-history
[dataItem]="dataItem"></
app-audit-history
>
<
i
*
ngIf
=
"!dataItem.isRemoving && dataItem.transactionGroup.groupName !== 'Ungrouped' && user.canWrite"
(click)="removeFromGroup(dataItem)"
class
=
"fa fa-2x fa-minus-circle text-danger cursor-pointer"
aria-hidden
=
"true"
placement
=
"top"
ngbTooltip
=
"Remove from Group"
container
=
"body"
></
i
>
</
ng-template
>
</
kendo-grid-column
>
</
kendo-grid
>