Is it possible to have columns with same field #12111
Replies: 3 comments
-
Hello @KaushikEDS , I have been looking into your question and I do not recommend using the same field for two columns because in some scenarios there could be side effects in case the functionality depends on the column field. |
Beta Was this translation helpful? Give feedback.
-
@MonikaKirkova I downloaded it on my local When we select the left column the grid.selectedCells show cells of the right column and itself. Edited sample :- |
Beta Was this translation helpful? Give feedback.
-
Hello @KaushikEDS, I have investigated this further and I have determined that the selected cells are accessed based on the cells in the row. However, this depends on the column field and when the field is not unique, as it is recommended, the cells in both columns are stored as selected. |
Beta Was this translation helpful? Give feedback.
-
We have created a feature for our clients where they can create their own Column groups.
We are facing problems when we add a column to a group and then have the same column in the grid as an individual column.
For example Group Column A has children Child A, Child B, Child C. Also, we have a normal column Child B in the grid.
I think the issue is that both columns have the same field property.
So far we have found issues with grid summaries and grid selectedCells where we get data for only the leftmost column. But there also might be other issues that we haven't found yet.
Is there a way to keep both columns with the same field?
Beta Was this translation helpful? Give feedback.
All reactions