File tree Expand file tree Collapse file tree
src/app/grid/grid-row-pinning-drag Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ export class GridPinningDragSampleComponent implements OnInit {
7979 if ( cursorPosition . y > rowRect . top + window . scrollY && cursorPosition . y < rowRect . bottom + window . scrollY &&
8080 cursorPosition . x > rowRect . left + window . scrollX && cursorPosition . x < rowRect . right + window . scrollX ) {
8181 // return the index of the targeted row
82- return this . data . indexOf ( this . data . find ( ( r ) => r . ID === row . data . ID ) ) ;
82+ return this . data . indexOf ( this . data . find ( ( r ) => r . ID === row . rowData . ID ) ) ;
8383 }
8484 }
8585
@@ -92,7 +92,7 @@ export class GridPinningDragSampleComponent implements OnInit {
9292 if ( cursorPosition . y > rowRect . top + window . scrollY && cursorPosition . y < rowRect . bottom + window . scrollY &&
9393 cursorPosition . x > rowRect . left + window . scrollX && cursorPosition . x < rowRect . right + window . scrollX ) {
9494 // return the ID of the targeted row
95- return row . data . ID ;
95+ return row . rowData . ID ;
9696 }
9797 }
9898 }
You can’t perform that action at this time.
0 commit comments