Hi Telerik,
I have a RadGridView with some Columns and 2 ColumnGroups. Each ColumnGroup has 2 Columns.
I want to know if is it possible to "merge" 2 child Columns Header in each ColumnGroup and display the Header ColmunGroup parent. Finally, there is just 1 row, with Column Header and ColumnGroup Header inside.
I attached 2 screens to show you the actually result and the objective.
Thank you !
4 Answers, 1 is accepted
Thank you for the images provided.
In order the merged column headers to be displayed, the headers of the columns need to be displayed as well. Having this in mind, having a single row containing the merged column headers would not be possible out-of-the-box. You may try modifying the default template of the control, but I am afraid that we cannot provide a concrete solution.
Best Regards,
Stefan X1
Progress Telerik
Hello Stefan,
If I understand, it's not possible to merge the 2 rows (parent and children). But there is any possibility to merge 2 columns header, not using ColumnGroup ? Or this is what you said too ?
In my exemple, I have 6 columns : if I set 'Exploitant' for the name of column 2, and I merged headers columns 2 and 3, it will be working ?
Thank you.
Hello Stefan,
I have an other idea :
For the colums without ColumGroup, I can create a ColumnGroup (with just 1 children column). After and with a template, is it possible to hide children colums ?
Finally, I have 1 row with all ColumnGroups.
Thank you.
I am afraid that simply merging the column headers instead of using the ColumnGroups mechanism would not be possible. As to the possible solution you mentioned, as stated in my previous reply, the ColumnGroups require the headers of the columns to be visible so they are shown as well. Displaying only the ColumnGroups without the headers is not supported by the control. Thus, I cannot confirm that even by editing the default template of the control the desired customization can be achieved.
Regards,
Stefan X1
Progress Telerik