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

Dynamic group header changes

3 Answers 302 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Marshall Long
Top achievements
Rank 1
Marshall Long asked on 29 Apr 2011, 04:21 PM
Howdy,

I am trying to see if a way currently exists to allow dynamic groupheader text changes.  Specifically, I have the following scenario:

I am using C# in a Windows environment with IE8.

I have a subreport that has several lines of header followed by a HtmlTextBox that contains text entered by the user and can span to more than one page.  Users have requested that when the print takes more than 1 page that not only does the groupheader section repeat on every page (which I was able to do via the PrintOnEveryPage property) but that the pages after the first one have a <continued> added to them.

Is there a way to do this that I haven't been able to find.  If not, is it possible in a later release?

Thanks

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 03 May 2011, 01:39 PM
Hello Marshall Long,

Data processing and paging are two separate processes and as explained in the Understanding Report Sections help article, the paging of a report strongly depends on the format it is rendered to, and that is why page sections and their items are processed by the corresponding rendering extension after the report data has been processed, so the Page Sections (Page headers/footers) are not related to the report itself, but are relative to the margins of the report's media, i.e. to the paper or screen. Thus conditional hiding of report item per page is only possible for the Page Header/Footer items and because those sections are available in the master report our suggestion is to add a Page Header/Footer section with the continue Textbox. Then to conditionally hide the Textbox on the first page you have to add the following TextBox Binding:

 Property path Expression
 Visible  = PageNumber<>1

Greetings,
Peter
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
Juan Sola
Top achievements
Rank 1
answered on 15 Dec 2015, 02:29 PM

Hi Peter,

I am trying to solve a similar issue as described by Marshall and had a little trouble following your reply.  I have a Group that has Detail that could cross pages (ie SampleContentGroup7 starts on Page 3 but its Detail is so long it crosses to Page 4 when processed), the GroupHeader is set to print on every page.  We would like to append " (continued)"  text to the GroupHeader text anytime the GroupHeader is printed on an additional page.  So in this case the GroupHeader text would be "Section 7" on Page 3 and "Section 7 (continued)" on Page 4.  Is this something that should be set at design time or perhaps handled programmatically during report processing?

 

Thanks

0
Hinata
Top achievements
Rank 1
answered on 18 Dec 2015, 11:39 AM
Tags
General Discussions
Asked by
Marshall Long
Top achievements
Rank 1
Answers by
Peter
Telerik team
Juan Sola
Top achievements
Rank 1
Hinata
Top achievements
Rank 1
Share this question
or