Unable to populate group header value

1 Answer 177 Views
.NET Framework Rendering Report Designer (standalone)
Jonas
Top achievements
Rank 1
Jonas asked on 31 Jan 2023, 12:23 PM

I have a report that I have populated programmatically with data.  The data in the detail section populates correctly.  I recently introduced a group into the report, but when I add a field (one of the detail fields) to the new group, the field is always blank.  I feel like there's some missing piece to setting the group values, but I can't find any examples online that mirror my scenario.

Here's how the report looks in the designer:

Here's the group configuration:

Here's where I'm setting the data into the table:


                        var table = report.Items.Find(pair.Key, true)[0] as Table;
                        if (table != null)
                        {
                            table.DataSource = data; // data is an List<Model>
                        }

The report doesn't actually group and the field in the group header is empty:

 

1 Answer, 1 is accepted

Sort by
0
Momchil
Telerik team
answered on 02 Feb 2023, 08:26 AM

Hello Jonas,

I see that you have created a support ticket regarding the same issue, which I have replied to.

You can take a look at what I have suggested there, but I will provide a summary here as well, in case someone else faces a similar issue.

The likely cause for the issue is that a report group is used, but no data is supplied to the report itself. This causes the report's group header/footer to be empty, and the detail section of the report to be rendered only once in a "static" group.

To resolve this behavior, you can do either of the following:

Best Regards,
Momchil
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/.
Tags
.NET Framework Rendering Report Designer (standalone)
Asked by
Jonas
Top achievements
Rank 1
Answers by
Momchil
Telerik team
Share this question
or