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

Bind data to report

1 Answer 137 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
alejandro
Top achievements
Rank 1
alejandro asked on 10 May 2019, 10:17 AM

Hello,

I am new to the telerik reports.

I am trying to create a report, I have managed to create them using static data, linking the report to a class and creating a list in its constructor, but now what I want is:

I have an object which contains a list of dynamic data,similar to the obj.png, which I want you to see in my report.

How do I pass the suscripcion object to the report1 to show the fields, as in the suscrip.png image?

 

Thank you.

1 Answer, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 15 May 2019, 07:57 AM
Hello Alejandro,

From what I understood, I recommend the usage of ObjectDataSource. Through this DataSource, business object or any other class can be represented and data retrieval capabilities are provided. Note that for security purposes, after the ObjectDataSource is created, a reference should be added in the config file of the project or the Report Designer that is going to render the corresponding report.
I notice that your model contains a property that is collection. It will be necessary to bind this collection property to the DataSource of a data item (e.g. List, Table, etc.) that should display the items of the collection.

You can take a look at our List Bound Report demo which displays data from a set of Business Objects. Our demos could be found in Telerik Reporting installation folder, for example C:\Program Files (x86)\Telerik Reporting <VERSION>\Examples\CSharp). The particular report is located in the (CSharp or VB).ReportLibrary project -> DataBinding folder.

For more information, refer to How to: Bind to a BusinessObject article. 

Neli
Progress Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
alejandro
Top achievements
Rank 1
Answers by
Neli
Telerik team
Share this question
or