Posted 14 September 2017, 11:15 am EST
The examples cover merging pretty well: http://demos.componentone.com/wijmo/5/Angular/Explorer/Explorer/#/grid/merging
I do still have a couple questions:
- 1 -
Is merging of cells horizontally intentionally left out?
From another post http://wijmo.com/reply/reply-to-multiple-rows-of-column-headers-grouped-column-headers-11/ I understand that without a custom MergeManager “The grid merges either rows or columns, but not both”.
So if i set the grid allowMerging=“Cells” and then for every column that is created have allowMerging=false, I should have a grid that merges cells horizontally. This, however, does not appear to work. In the FlexGrid source code where rows are constructed (e.g. cvCollectionChanged, bindRows) the Row is directly instantiated and added to the rows array without setting any properties. A row never has allowMerging=true even if the grid has allowMerging=“Cells”.
Modifying my local copy of wijmo grid I can make these assignments and it “works” (as a quick and dirty proof-of-concept).
So my question is “was this intentional, or is it a possible oversight?”. Are there horrors awaiting by enabling horizontally merged rows? This is using the standard MergeManager and just ensuring that row properties are set.
- 2 -
Regardless of how cells become merged, is there a manner in which to detect whether a cell is merged or not?
Example use case – styling merged cells.
- There are no custom classes applied to merged cells.
- Within an itemFormatter function there is no direct way to determine if the cell is merged. One could possibly access the source data for the entire row and look left and right, but that would require running merge logic again just to format it.
Any ideas about how this use case might be addressed?
Thanks.