File tree 2 files changed +9
-1
lines changed
projects/igniteui-angular/src/lib/grids
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -2670,6 +2670,14 @@ export class IgxGridBaseDirective extends DisplayDensityBase implements
2670
2670
return this . _pinnedRecordIDs . length > 0 ;
2671
2671
}
2672
2672
2673
+ /**
2674
+ * @hidden
2675
+ * @internal
2676
+ */
2677
+ public get pinnedRecordsCount ( ) {
2678
+ return this . _pinnedRecordIDs . length ;
2679
+ }
2680
+
2673
2681
private keydownHandler = ( event ) => {
2674
2682
const key = event . key . toLowerCase ( ) ;
2675
2683
if ( ( isNavigationKey ( key ) && event . keyCode !== 32 ) || key === 'tab' || key === 'pagedown' || key === 'pageup' ) {
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ export class IgxGridPagingPipe implements PipeTransform {
103
103
if ( ! this . gridAPI . grid . paging ) {
104
104
return collection ;
105
105
}
106
- const _perPage = perPage - this . gridAPI . grid . pinnedRows . length ;
106
+ const _perPage = perPage - this . gridAPI . grid . pinnedRecordsCount ;
107
107
const state = {
108
108
index : page ,
109
109
recordsPerPage : _perPage
You can’t perform that action at this time.
0 commit comments