This is a migrated thread and some comments may be shown as answers.

Enable multiple columns in GridGroupHeader

2 Answers 16 Views
Grid
This is a migrated thread and some comments may be shown as answers.
AdGooroo
Top achievements
Rank 1
AdGooroo asked on 07 Aug 2009, 02:57 AM
Hello,

We are using the grouping features of RadGrid. The detail rows contain several columns with numeric data which needs to be aggregated up the group headers. This all works fine.

However, the group header contains a single cell which contains all of the information, like so:

<td colspan="3"><p>XYZ, count: 7, frequency: 75%</p></td>

We want the count and frequency statistics to appear in their own columns (e.g. aligned with the detail columns), like this:

<td><p>XYZ</p></td><td><p>count: 7</p></td><td><p>frequency: 75%</p></td>

How can we do this?

Thanks!

2 Answers, 1 is accepted

Sort by
0
AdGooroo
Top achievements
Rank 1
answered on 07 Aug 2009, 05:05 PM
We resolved it. We couldn't modify the container <td>, so we just used a nested table. The only drawback is that we have to carefully align the pixels and columns, which is extremely difficult to do with some of the standard CSS definitions.
0
Veli
Telerik team
answered on 11 Aug 2009, 12:05 PM
Hello AdGooroo,

Indeed, alignments by the pixel can be quite tricky for different browsers, especially non-standards-compliant ones, if you need to support such. Still, the nested tables give you the most freedom to modify both the table and the parent row, so in this situation we would also have recommended you to use them instead.

Kind regards,
Veli
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
AdGooroo
Top achievements
Rank 1
Answers by
AdGooroo
Top achievements
Rank 1
Veli
Telerik team
Share this question
or