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

Grouping by Column

3 Answers 813 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mihai Dinculescu
Top achievements
Rank 1
Mihai Dinculescu asked on 11 Jan 2011, 09:42 PM
Hello

I have a report  that looks like:

col1 value 1
col1  value 2
col1 value 3

I'd like to show col1 only once. If I use the group header for this it will add an extra row like:

col1
value 1
value 2
value 3

Is there any way to have it like:

col1  value 1
  value 2
value 3

Thanks
Mihai

3 Answers, 1 is accepted

Sort by
0
Mihai Dinculescu
Top achievements
Rank 1
answered on 25 Jan 2011, 09:46 PM
Bump. I still need help on this issue.

I found that I can use DetailArea1_ItemDataBound to programmatically get around this, but in this case I'm not able to repeat the group header on the continuous pages (because I can't get the pagenumber inside the DetailArea1_ItemDataBound).
0
Accepted
Peter
Telerik team
answered on 28 Jan 2011, 06:30 PM
Hi Mihai Dinculescu,

The easiest way to achieve the desired layout is to use a CrossTab. You can create such CrossTab with the CrossTab Wizard that will guide you through the process of creating a CrossTab for your reports. Their intuitive step by step instructions would get you going in no time as no previous experience is needed when using the wizard. On the Arrange Fields step add the col1 field as Row Group. This will add a group by full name. By design the group fields are spanned. If the CrossTab suggestion is not applicable our suggestion is to set the col1 textbox.Visibility with a Binding to the following Expression: =RowNumber("col1Group")=1. Just to note that setting a Textbox.Visibility to false will leave empty space and all of the items on the right side will move to occupy this empty space. To avoid this behavior you have to add the textboxes on the right side into a Panel item and Dock it to right.

You may find useful the Working with Tables Lists and Cross Tabs video.

Greetings,
Peter
the Telerik team
Get started with Telerik Reporting with numerous videos and detailed documentation.
0
Cristian
Top achievements
Rank 1
answered on 25 Sep 2012, 06:40 PM
Hi I'm grouping by adding group header but instead of getting Mihai's result

col1
        value 1    
        value 2
        value 3
 I'm getting the following
col1
        value 1    
col2
        value 2
col3      
        value 3

How can I do to have just one header by group?
I'm using Telerik Reporting Q1 2012
Tags
General Discussions
Asked by
Mihai Dinculescu
Top achievements
Rank 1
Answers by
Mihai Dinculescu
Top achievements
Rank 1
Peter
Telerik team
Cristian
Top achievements
Rank 1
Share this question
or