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

Newbie reportHeader question

1 Answer 28 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 07 Oct 2014, 09:08 PM
I seem to be having trouble with what I think is a very simple newbie issue.

I am unable to get information from my datasource into text areas on the reportHeader.

Originally I had a datasource bound to my report and at that point I had access to the fields I needed to print in the reportHeader.
However when I got to the details section and attempted to bind the datasource to a table so that I could print out the rows, I noticed that I was getting the same data over and over again.
Trolling through your forums revealed that this was solvable by only binding my dataset to the table and not to the whole report, which I did.
That solved the duplicate data in the table problem but now none of the reportHeader text boxes have nothing in them.
Can you tell me what I am doing wrong?

Thank you,

Jim

1 Answer, 1 is accepted

Sort by
0
Accepted
Nasko
Telerik team
answered on 10 Oct 2014, 12:01 PM
Hello Jim,

Please check the Telerik Reporting report structure in the Report Structure help article.
Notice that only the Detail section is repeated for each record in the data source. Thus, it is possible to set the Report.DataSource, hide the Detail section (Detail.Visible = False) and then move your Table item to a static Group Header section, so it is shown only once.

A static group can be created from the Group Explorer window:
  1. Bring up the context menu of the Detail group.
  2. Add Parent Group.
  3. Click OK in the Edit Grouping dialog without specifying an expression. 

With this approach you will have access to the needed data fields in the Report Header section.


There is another approach to create this scenario. It is possible to leave the Report.DataSource = none and then add a Data Item inside the Report Header section. A data item has its own data source and you can nest other report items inside it and access data source fields.

Regards,
Nasko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Report Designer (standalone)
Asked by
James
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Share this question
or