File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
projects/igniteui-angular/src/lib/grids/selection Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -729,8 +729,12 @@ export class IgxGridSelectionService {
729
729
730
730
/** Returns all data in the grid, with applied filtering and sorting and without deleted rows. */
731
731
public get allData ( ) : Array < any > {
732
- const allData = this . isFilteringApplied ( ) || this . grid . sortingExpressions . length ?
733
- this . grid . filteredSortedData : this . grid . gridAPI . get_all_data ( true ) ;
732
+ let allData ;
733
+ if ( this . isFilteringApplied ( ) || this . grid . sortingExpressions . length ) {
734
+ allData = this . grid . pinnedRecordsCount ? this . grid . _filteredSortedUnpinnedData : this . grid . filteredSortedData ;
735
+ } else {
736
+ allData = this . grid . gridAPI . get_all_data ( true ) ;
737
+ }
734
738
return allData . filter ( rData => ! this . isRowDeleted ( this . grid . gridAPI . get_row_id ( rData ) ) ) ;
735
739
}
736
740
Original file line number Diff line number Diff line change 20
20
</ div >
21
21
< igx-grid [rowEditable] ="true " [igxGridState] ="options " [allowFiltering] ='true ' [primaryKey] ='"ID" ' [pinning] ="pinningConfig " [paging] ="true "
22
22
[columnHiding] ='true ' [showToolbar] ='true ' [columnPinning] ='true ' #grid1 [data] ="data " [width] ="'800px' "
23
- [height] ="'600px' " [rowSelection] ="true ">
23
+ [height] ="'600px' " [rowSelection] ="'multiple' ">
24
24
25
25
< ng-template igxGridDetail let-dataItem >
26
26
< div >
You can’t perform that action at this time.
0 commit comments