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

Group header

3 Answers 117 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Orit
Top achievements
Rank 1
Orit asked on 16 Jun 2009, 08:59 AM
Hi

Is there a way to make two rows of header
in order to group few columns together
like this

      a              b             c
a1 a2 a3  b1 b2 b3  c1 c2 c3 

3 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 16 Jun 2009, 03:31 PM
Hello Orit,

This is not a trivial task, but it can be achieved by modifying the HeaderCellStyle of a column. When you redefine the ControlTemplate of the HeaderCell, you can insert custom UI elements and arrange them.

I have attached a small sample project that does something similar to your scenario. You can use it as a starting point and adjust the layout of your a, a1....c2, c3 labels in a manner that you like. You should be looking for the Grid that is immediately inside the <ControlTemplate TargetType="GridView:GridViewHeaderCell"> tag.

One important thing to note is that when you customize the default header cell template you will lose a lot of built in features such a resizing, filtering, etc.

Please, examine the sample project and let me know whether it will work as a starting point for your custom layout.

Sincerely yours,
Ross
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.
0
Yossie C
Top achievements
Rank 1
answered on 24 Aug 2009, 12:56 PM
HI Guys,

Is solution for this problem that maintains the functionality of the column?

what about the telerik team , is this feature will be available in the next release?

10X
0
Pavel Pavlov
Telerik team
answered on 25 Aug 2009, 01:36 PM
Hello Yossie C,

Here you may also find a solution that preserves the features of the column headers.
We are working towards adding this as an internal feature of RadGridView but I can not promise it for the very next release.

Regards,
Pavel Pavlov
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
GridView
Asked by
Orit
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Yossie C
Top achievements
Rank 1
Pavel Pavlov
Telerik team
Share this question
or