Skip to content

Commit 52807e8

Browse files
github-actions[bot]KB BotIvetNikolovatodorarabadzhiev
authored
Added new kb article group-specific-page-numbering-telerik-reporting (#1824)
* Added new kb article group-specific-page-numbering-telerik-reporting * Update group-specific-page-numbering-telerik-reporting.md * Update group-specific-page-numbering-telerik-reporting.md --------- Co-authored-by: KB Bot <[email protected]> Co-authored-by: IvetNikolova <[email protected]> Co-authored-by: Todor Arabadzhiev <[email protected]>
1 parent 8755106 commit 52807e8

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
title: Numbering Pages Based on Group Scope
3+
description: Learn how to configure page numbering within groups in Telerik Reporting to display relative page numbers for each group.
4+
type: how-to
5+
page_title: Group-Specific Page Numbering in Telerik Reporting
6+
meta_title: Group-Specific Page Numbering in Telerik Reporting
7+
slug: group-specific-page-numbering-telerik-reporting
8+
tags: reporting, page numbering, groups, page functions, telerik reporting
9+
res_type: kb
10+
ticketid: 1698535
11+
---
12+
13+
## Environment
14+
15+
<table>
16+
<tbody>
17+
<tr>
18+
<td> Product </td>
19+
<td> Reporting </td>
20+
</tr>
21+
</tbody>
22+
</table>
23+
24+
## Description
25+
26+
I need page numbering based on a specific group using Standalone Designer. Instead of absolute page numbers, I want the numbering to reset within each group. For example, if there are two pages per group, the numbering should appear as "Page 1 of 2" and "Page 2 of 2" for the first group, then reset to "Page 1 of 2" for the next group. This numbering should reflect the pages within the group scope.
27+
28+
## Solution
29+
30+
To implement group-specific page numbering, follow these steps:
31+
32+
### Using Built-in Page Functions
33+
34+
1. Open the report in the Standalone Designer.
35+
1. Define a group for the desired field (e.g., `ResidentID`) at the report level if not already done.
36+
1. Add a TextBox to the page footer.
37+
1. Use the following expression to display page numbering within the group:
38+
39+
`= "Page " + PageNumber("residentGroup", Fields.ResidentID) + " of " + PageCount("residentGroup", Fields.ResidentID)`
40+
41+
- Replace `"residentGroup"` with your group's name.
42+
- Replace `Fields.ResidentID` with the key field of the group.
43+
44+
1. Assign the data source directly to the report to ensure the group scope functions correctly.
45+
46+
## See Also
47+
48+
* [Page Functions Explained - Telerik Reporting]({%slug telerikreporting/designing-reports/connecting-to-data/expressions/expressions-reference/functions/page-functions%})
49+
* [Grouping Data]({%slug telerikreporting/designing-reports/connecting-to-data/data-items/grouping-data/overview%})
50+
* [Adding Groups to Report]({%slug telerikreporting/designing-reports/connecting-to-data/data-items/grouping-data/how-to-add-groups-to-report%})

0 commit comments

Comments
 (0)