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

PageHeaderSection showing its containing TextBox twice

5 Answers 89 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Datamex
Top achievements
Rank 2
Datamex asked on 08 Jun 2011, 11:36 AM
Hi there,

I've been designing Telerik Reports recently, but now I've noticed some strange behaviour. My report is using an ObjectDataSource and in my PageHeaderSection I use a TextBox with its Value property set to "= Fields.Project.Name". Whenever I generate this report I see this TextBox twice above each other.

For instance Fields.Project.Name is equal to "Telerik". My report shows the following:

Telerik
Telerik

____________________________(end of PageHeaderSection).

I just want it to only display "Telerik" once, not twice.

Any idea of what's causing this anomalous behaviour? Thanks in advance!

Regards,
Datamex

5 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 08 Jun 2011, 12:10 PM
Hi Datamex,

We've not been able to reproduce such a problem on our end. Please provide us with more details on how to replicate the issue locally or open a support ticket and attach a sample report that exhibits the problem. Once we review it, we would be able to provide you with more info.

Best wishes,
Steve
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Datamex
Top achievements
Rank 2
answered on 08 Jun 2011, 12:43 PM
Thanks for the reply.

Well, my businesslogics call returns an IEnumerable<Activity>.

Each activity belongs to a project. What I want to accomplish is to display the name of the project in my PageHeaderSection, but as I said it's displayed twice. In my DetailSection each activity for the current project is shown. 

For example:
<DetailSection____________________
activity1
("= Fields.Activity.Name")
activity2
activity3
et cetera.
____________________DetailSection>

As you can see nothing is displayed twice in my DetailSection, albeit the usage of "= Fields.Project.Name" is the same as in my PageHeaderSection. (using "= Fields.Project.Name" or "= Fields.Activity.Name" for the Value property of the TextBox)

As I said in my first post my PageHeaderSection looks like:
<PageHeaderSection____________________
projectname
projectname
____________________PageHeaderSection>


There is only one project, how is it possible that it's shown twice and why is the exact same logic working in the DetailSection, but not in the PageHeaderSection? In my opinion, this is deviant behaviour of the PageHeaderSection, because it's working as expected in the DetailSection.

Hopefully I've provided enough info now.

Looking forward to hear again from you. Thanks!

Regards,
Datamex
0
Steve
Telerik team
answered on 09 Jun 2011, 03:09 PM
Hi Datamex,

Telerik Reporting supports deep object graphs, i.e. business objects with complex properties and there is no problem to use an expression like = Fields.Activity.Name. Moreover as explained in the Understanding Report Sections help article, the page sections are processed by the corresponding rendering extension after the report data has been processed. At this moment the report data source is not available anymore and a data source field placed in a page section would display the first value i.e. = First(Fields.Activity.Name).

Having the above in mind, we do not believe the problem is related to your data source or the fact that the textbox is in the page header and there must be something else in your report causing the textbox to multiply. That is why we would appreciate if you prepare a sample project and attach it in a support ticket or provide a link to it here (remember to remove the assemblies).

Kind regards,
Steve
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Datamex
Top achievements
Rank 2
answered on 16 Jun 2011, 08:35 AM
Hi there,

It's not possible for me to submit a support ticket, because of the database you should have to set up, businesslogics which I can't give away and report itself.

I think it's hard to explain it more clearly.

I have a TextBox in my PageHeaderSection with the value = Fields.Project.Name or = Fields.Customer.Name, but the text gets displayed twice. I have a TextBox in my DetailSection with the value = Fields.Project.Name or = Fields.Customer.Name too, but it only gets displayed once as you would expect.

I still can't get a hold of it and really hope you have some ideas I can try out. Thanks in advance!

Regards,
Datamex
0
Steve
Telerik team
answered on 16 Jun 2011, 11:18 AM
Hello Datamex,

We do not need your actual database nor your actual business object. You can use sample/dummy data to prepare a sample report that exhibits the problem, so we can review it.

All the best,
Steve
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Datamex
Top achievements
Rank 2
Answers by
Steve
Telerik team
Datamex
Top achievements
Rank 2
Share this question
or