Newbie reportHeader question

2 posts, 1 answers
  1. James
    James avatar
    2 posts
    Member since:
    Sep 2014

    Posted 07 Oct 2014 Link to this post

    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,


  2. Answer
    Nasko avatar
    944 posts

    Posted 10 Oct 2014 Link to this post

    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.


    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.

Back to Top