Bind data to report

2 posts, 0 answers
  1. alejandro
    alejandro avatar
    10 posts
    Member since:
    Mar 2018

    Posted 10 May Link to this post

    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.

  2. Neli
    Admin
    Neli avatar
    172 posts

    Posted 15 May Link to this post

    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
Back to Top