@@ -2723,19 +2723,27 @@ export class IgxGridBaseDirective extends DisplayDensityBase implements
27232723 }
27242724
27252725 /**
2726+ * Returns whether the record is pinned or not.
2727+ *
2728+ * @param rowIndex Index of the record in the `dataView` collection.
2729+ *
27262730 * @hidden
27272731 * @internal
27282732 */
2729- public isRecordPinnedByIndex ( rowIndex : number ) {
2733+ public isRecordPinnedByViewIndex ( rowIndex : number ) {
27302734 return this . hasPinnedRecords && ( this . isRowPinningToTop && rowIndex < this . pinnedDataView . length ) ||
27312735 ( ! this . isRowPinningToTop && rowIndex >= this . unpinnedDataView . length ) ;
27322736 }
27332737
27342738 /**
2739+ * Returns whether the record is pinned or not.
2740+ *
2741+ * @param rowIndex Index of the record in the `filteredSortedData` collection.
2742+ *
27352743 * @hidden
27362744 * @internal
27372745 */
2738- public isFilteredSortedDataRecordPinnedByIndex ( rowIndex : number ) {
2746+ public isRecordPinnedByIndex ( rowIndex : number ) {
27392747 return this . hasPinnedRecords && ( this . isRowPinningToTop && rowIndex < this . _filteredSortedPinnedData . length ) ||
27402748 ( ! this . isRowPinningToTop && rowIndex >= this . _filteredSortedUnpinnedData . length ) ;
27412749 }
@@ -6017,7 +6025,7 @@ export class IgxGridBaseDirective extends DisplayDensityBase implements
60176025 if ( exactMatch ) {
60186026 if ( searchValue === searchText ) {
60196027 const metadata = new Map < string , any > ( ) ;
6020- metadata . set ( 'pinned' , this . isFilteredSortedDataRecordPinnedByIndex ( rowIndex ) ) ;
6028+ metadata . set ( 'pinned' , this . isRecordPinnedByIndex ( rowIndex ) ) ;
60216029 this . lastSearchInfo . matchInfoCache . push ( {
60226030 row : dataRow ,
60236031 column : c . field ,
@@ -6031,7 +6039,7 @@ export class IgxGridBaseDirective extends DisplayDensityBase implements
60316039
60326040 while ( searchIndex !== - 1 ) {
60336041 const metadata = new Map < string , any > ( ) ;
6034- metadata . set ( 'pinned' , this . isFilteredSortedDataRecordPinnedByIndex ( rowIndex ) ) ;
6042+ metadata . set ( 'pinned' , this . isRecordPinnedByIndex ( rowIndex ) ) ;
60356043 this . lastSearchInfo . matchInfoCache . push ( {
60366044 row : dataRow ,
60376045 column : c . field ,
0 commit comments