Include Telerik reporting in MVC 4 application

4 posts, 0 answers
  1. Pietro
    Pietro avatar
    3 posts
    Member since:
    Jul 2010

    Posted 16 Mar 2015 Link to this post

    I have a MVC 4 application and I'm considering to include a reporting tools "telerik reporting".
    Are there some example about how to show a report in HTML5 Report Viewer under these constraints:
    1. The report is created with standalone telerik report designer and it is save as trdx file in  /App_Data folder,  so Report has to retrieved from /App_Data folder
         (use CustomReportResolver : IReportResolver  ?).

    2. The report has to use a ObjectDataSource (eg.: list of object like List<Cars>) and the binding is done at runtime before the reports is shown, the list of object has to got from a repository class

        How to create fields on report at Design Time from ObjectDataSource  in standalone telerik report designer.

    Thanks for any advice.

  2. Stef
    Stef avatar
    3611 posts

    Posted 19 Mar 2015 Link to this post

    Hello Pietro,

    The HTML5 Report VIewer is a client-side HTML5/CSS3/JS widget, served by a running Reporting REST service.
    For more details, please check  this forum thread
    and the linked overview article, where you can find details how the viewer and the service work.
    For a working demo, check the local examples installed by default under C:\Program Files (x86)\Telerik\Reporting <VERSION>\Examples.

    To use the ObjectDataSource (custom business object as data source) in the Standalone Report Designer tool, the data access layer must be built in an external assembly extending the tool's configuration. On deploying the TRDX you can configure the application to load the same or other assembly with the same signature.

    Other approach is to set data at run-time. For the purpose you will have to retrieve the report on the server in a custom report resolver, and deserialize it in a Telerik.Reporting.Report object. Then you can set the report instance's DataSource.

    I hope the provided information is helpful.


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  3. Surya prakash
    Surya prakash avatar
    1 posts
    Member since:
    Feb 2012

    Posted 20 Oct 2015 Link to this post

    I have not found any available object datasource in telerik report designer using object datasource .

    please advise.

    i would we grate for me.

  4. Stef
    Stef avatar
    3611 posts

    Posted 22 Oct 2015 Link to this post

    Hello Surya,

    You will need to extend the Standalone Designer tool to load the external assembly with the custom data objects. Then on starting the designer and adding an ObjectDataSource component, you will be able to use the custom objects as items' data sources.

    For more details check  Extending Report Designer (the linked at the bottom articles are step-by-step tutorials for extending the tool and later deploying the reports).

    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