cancel
Showing results for 
Search instead for 
Did you mean: 

Merge Cells in sap.ui.table.Table

Former Member
0 Kudos

Hi,

I need to merge cells in UI Table based on the data that I'm binding from a dynamically created mode.

I have gone through some of the posts on the same query but I wasn't able to find a solution to my problem. I do not want to use ids for the cells to achieve this as it would create a problem when I have only a certain number of visible rows at a time in the ui table.

And there doesn't seem to be a direct property like mergeDuplicates in the m table.

sapuitable-with-duplicate-data.png

I've attached an image of the table and how I want to merge the data.

Thanks

Stephanie

Accepted Solutions (0)

Answers (1)

Answers (1)

Sharathmg
Active Contributor
0 Kudos

Use the sap.m.table. In it, use the property mergeDuplicates in sap.m.column.

For reference, check the following threads:

https://archive.sap.com/discussions/thread/3725533

https://archive.sap.com/discussions/message/16293038#16293038

Regards,

Sharath

Former Member
0 Kudos

Hi Sharath,

If I use the sap m table, I have to show majority of the cells of the table as blank. The mergeDuplicates even merges the blank cells, which I do not want.

Regards

Stephanie

Sharathmg
Active Contributor
0 Kudos

coz, it looks for common values and merges it. Empty space is also a value and hence other columns without data get merged.

Other than, this there is not direct config to only merge columns with data. Check if it's possible to control the merging duplicated for a specific column.

Regards,

Sharath