File tree Expand file tree Collapse file tree 2 files changed +1
-15
lines changed
projects/igniteui-angular/src/lib/grids/tree-grid Expand file tree Collapse file tree 2 files changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ export class IgxTreeGridRowComponent extends IgxRowDirective<IgxTreeGridComponen
53
53
* ```
54
54
*/
55
55
public get pinned ( ) : boolean {
56
- return this . grid . isRowInPinnedRecordsStructure ( this . _treeRow ) ;
56
+ return this . grid . isRecordPinned ( this . rowData ) ;
57
57
}
58
58
59
59
/**
Original file line number Diff line number Diff line change @@ -538,20 +538,6 @@ export class IgxTreeGridComponent extends IgxGridBaseDirective implements GridTy
538
538
}
539
539
}
540
540
541
- /**
542
- * @hidden @internal
543
- */
544
- public isRowInPinnedRecordsStructure ( rec ) : boolean {
545
- let inStructure = false ;
546
- const rowId = this . primaryKey ? rec . data [ this . primaryKey ] : rec . data ;
547
- this . _pinnedRecordIDs . forEach ( pinnedRecord => {
548
- if ( pinnedRecord === rowId ) {
549
- inStructure = true ;
550
- }
551
- } ) ;
552
- return inStructure ;
553
- }
554
-
555
541
/** @hidden */
556
542
public deleteRowById ( rowId : any ) {
557
543
// if this is flat self-referencing data, and CascadeOnDelete is set to true
You can’t perform that action at this time.
0 commit comments