Report Groups and Hiding Some Fields

1 Answer 23 Views
Report Viewer - WinForms
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Mark asked on 06 Jan 2023, 05:05 PM
I have a report that has a report a grouping.  In that report grouping, I want to only display specific fields based on the page number. The page number is resetting for that group. However, the Items in the group header do not seem to see the page number change, so I can't use that.  I thought about using a field in the result set, but that is not either.   This is a pretty complex report, and I could use some help on this, as I don't write reports all the often.

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 11 Jan 2023, 01:40 PM

Hello Mark,

If I understood correctly, you would like to have the fields displayed or not on a page depending on its page number.

You are right that the Group sections cannot access the page numbers or any page functions. In fact, only the page sections have access to this information. This is a limitation of the rendering workflow, as the paging depends on the export format and is done later in the process.

As a limited workaround, you may try to display the fields in the Page Header instead. You may use the PageExec function with the scope of the corresponding group.

Regards,
Todor
Progress Telerik

Brand new Telerik Reporting course in Virtual Classroom - the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products. Check it out at https://learn.telerik.com/.
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
commented on 11 Jan 2023, 01:43 PM

Todor

Thanks for your response.  I figured that was the case.   We found a work around for this report, while not 100% like its legacy brother, our customers are satisfied with the approach we took with it.

 

Thank you

Tags
Report Viewer - WinForms
Asked by
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Answers by
Todor
Telerik team
Share this question
or