Posted 24 January 2019, 12:16 pm EST
I would like Wijmo FlexGrid to render a many-to-many column using data map in an Angular app.
For example:
data: {name: string, countries: number|null};
countries: {id: number, name: string};
See full source code of the example:
https://stackblitz.com/edit/angular-qfggmw
The problem is that with data map, it works properly only when there us just 1 element in the array.
Steps to reproduce:
- Have a column that contains arrays of IDs
- Have a data map that uses these IDs
- Enable FlexGridFilter
- Click the “filter” icon to open dropdown
Result:
- For cases when there is just 1 element in the array, the filter works as expected
- When there are more than 1, the cell renders IDs instead of mapped values. The filter selection also renders the same and it does not distinguish individual elements from within array
Expected: when using data map, take into account all elements of the nested array and filter should contain distinct individual values.
