Open spali opened 3 years ago
filteredData should be always sorted, even if data is not filtered.
filteredData
if no filter used, filteredData should return the same array as sortedData.
sortedData
sortedData matches the rendered table. filteredData has the contains the unsorted datasource.
angular: 12.0 ngrid: 4.0.0-alpha.3
Currently I workaroud by accessing like:
const data = this.grid.ds.filter !== undefined ? this.grid.ds.filteredData : this.grid.ds.sortedData;
If this is by design, do not hesitate closing this issue.
What is the expected behavior?
filteredData
should be always sorted, even if data is not filtered.What is the current behavior?
if no filter used,
filteredData
should return the same array assortedData
.What are the steps to reproduce?
sortedData
andfilteredData
to the console.sortedData
matches the rendered table.filteredData
has the contains the unsorted datasource.Which versions of Angular, CDK, Material, NGrid, OS, TypeScript, browsers are affected?
angular: 12.0 ngrid: 4.0.0-alpha.3
Is there anything else we should know?
Currently I workaroud by accessing like:
If this is by design, do not hesitate closing this issue.