Report Designer Complex Type from Web Service Data source and Replicate Group of Textboxes and tables for each element of the list

1 Answer 34 Views
DataSource WebService Grouping
dodo
Top achievements
Rank 1
dodo asked on 13 Oct 2022, 10:57 AM | edited on 13 Oct 2022, 11:03 AM

I have a Web API from which I get a list or Objects, Each Object has a List of subobjects inside of it. I would like to build a report that for each element of the top list fills 2 textboxes and fills a table with the sublist, and copy that group of elements for each member of said parent list.

Can this be done?

List<Object1> is recieved from the datasource

Object1 -> FirstName, LastName, DoB, List<Object2>

Object2 -> Email, Number etc...

 

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 17 Oct 2022, 01:40 PM

Hello Josip,

If I have understood correctly, the scenario is that the data has a field at the top level which represents a list of complex objects with their own fields and those fields should be displayed through a nested table for each entry, is that correct?

Such a scenario can indeed be implemented in Telerik Reporting by nesting multiple data items into each other and then binding their DataSources to the fields that are lists of data.

For more information on how to provide data to the nested items, please see the Binding a Data item to Data and How to Databind to Collection Properties articles.

I have attached a sample report where I have utilized this approach with some sample data to create a table for each nested list of data.

Please let me know if you have any further questions.

Regards,
Dimitar
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
DataSource WebService Grouping
Asked by
dodo
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or