I'm using SlickGrid and very happy with it, one of the best grids I've ever encountered. I use DataView for the data and groupItemMetadataProvider for grouping.
I have a following problem and looking for a solution. My data contains some fields with multiple values. E.g. one data entry can be associated with multiple countries: US, IR, NZ or multiple categories: cats, dogs, birds.
Two questions:
- What is the best practice to implement the view for several entries in one cell. ? I suppose, custom template or formatter can be used here, but will be glad to hear your suggestions.
- How to implement grouping by such field? E.g. I would like to group by country, so the entry should be shown under each country group, same row under US, AU and NZ.
Real Life Example
Without grouping
Name | Animals
-----------------
Paker | cats, dogs, birds
Michael | cats, snakes
Group by animals
Name | Animals
-----------------
- cats
Paker | cats, dogs, birds
Michael | cats, snakes
- dogs
Paker | cats, dogs, birds
- birds
Paker | cats, dogs, birds
- snakes
Michael | cats, snakes
Cross-posted to SlickGrid Google Group: https://groups.google.com/forum/#!topic/slickgrid/BxS_4Lny3KE
Thanks a lot!