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

2-Tier Column Header

3 Answers 96 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 22 Nov 2010, 07:10 PM

Is there any way to add a header row above an existing header row to group certain headers?  For example, say I have the following headers:

Office     Sales Target     Sales Actual    Purchases Target   Purchases Actual
Buffalo    $24              $22             $2                 $4
...        ...              ...             ...                ...

Instead of having "Sales" in all three column headers, I'd like it to look like the following:

           Sales              Purchases
Office     Target     Actual     Target    Actual
Buffalo    $24        $22        $2        $4
...        ...        ...        ...       ...

 
Is there any way to accomplish this?

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 23 Nov 2010, 06:17 AM
Hello Ryan,

Please check out the following documentation which shows how to customize column headers.
Customizing with GridTemplateColumn

Thanks,
Princy.
0
Ryan
Top achievements
Rank 1
answered on 23 Nov 2010, 09:01 PM
Thanks for the reply.  I was hoping for something a little more built-in.  Any other suggestions?
0
Pavlina
Telerik team
answered on 25 Nov 2010, 09:17 AM
Hi Ryan,

The most flexible approach RadGrid currently supports is using GridTemplateColumns to define custom item and header templates for every grid cell. Providing greater flexibility with the grid header is on the agenda, but any concrete development schedules cannot be given at the moment.

All the best,
Pavlina
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Grid
Asked by
Ryan
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Ryan
Top achievements
Rank 1
Pavlina
Telerik team
Share this question
or