I am using ag-grid in my angular project, where I have multiple columns across various column groups. All other things are working fine, but when we have one or more collapsed column groups, and we copy value by selecting multiple cells or a row, it's not getting copied in the same order of column displaying on UI.
The collapsed column's cell value is getting copied first and then the open column's cell value will get copied.
For example,
Let's assume we have 6 column in 3 column group
Group A
- Column A1
, A2
Group B
- Column B1
, B2
Group C
- Column C1
, C2
Now if I am having Group B and Group C collapsed, and I try to copy entire row (R1
) with all the column's cell, copied value is as below
Val-R1-B1 Val-R1-B2 Val-R1-C1 Val-R1-C2 Val-R1-A1 Val-R1-A2
When I have no group collapsed, it is getting copied in correct order i.e. Val-R1-A1 Val-R1-A2 Val-R1-B1 Val-R1-B2 Val-R1-C1 Val-R1-C2