Posted 1 March 2021, 11:07 pm EST
I am using column groups to show data in the grid. There are few cells that have empty column headers. I want to merge them into a single cell. I tried to use the ‘cssClass’ property but it’s applying CSS on both column headers and row in the grid. I tried in the ‘formatItem’ method but CSS is applying on both column and row.
this is column group data
this.columnGroups = [
{ binding: 'Name', header: 'Name', allowSorting: false },
{ header: 'Title', allowSorting: false, columns: [
{ binding: 'TitleCondition', header: ' ', allowMerging: true, allowSorting: false, dataMap: conditionDataMap},
{ binding: 'TitleValue', header: ' ', allowMerging: true, allowSorting: false, dataMap: titleDataMap}
]},
{ binding: 'Condition', header: 'Condition', allowSorting: false, dataMap: outerConditionDataMap },
]
I want to merge empty column headers with the ‘Name’ column header. How to do that?