Is it possiable to use web api(json) as data source of the HTML5 Report Viewer?
3 Answers, 1 is accepted
0
Hello Kelvin,
Reports are processed and rendered on the server, where the Reporting RESt service is running. The HTML5 viewer is only a client that can reside in any web application. the viewer loads content rendered on the server.
About binding data, there is no data source component that works directly with JSON formatted data. We can suggest you to create a data access layer in which yo consume the JSON data into a .NET data object e.g. DataTable or business object, and then use it via ObjectDataSource component.
Please consider the example in Connecting Telerik Reporting to OData feeds.
I hope this helps.
Regards,
Stef
Telerik by Progress
Reports are processed and rendered on the server, where the Reporting RESt service is running. The HTML5 viewer is only a client that can reside in any web application. the viewer loads content rendered on the server.
About binding data, there is no data source component that works directly with JSON formatted data. We can suggest you to create a data access layer in which yo consume the JSON data into a .NET data object e.g. DataTable or business object, and then use it via ObjectDataSource component.
Please consider the example in Connecting Telerik Reporting to OData feeds.
I hope this helps.
Regards,
Stef
Telerik by Progress
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
0
kiran
Top achievements
Rank 1
answered on 06 Mar 2017, 09:31 PM
Hi,
I am exploring telerik report, was lookin at Connecting Telerik Reporting to OData feeds.
Do you have latest sample code with restful api as data source using angular?
Thanks
Kiran J
0
Hello kiran,
In general, reports are processed and render on the server machine where the Reporting REST service is running. Thus data must be accessible on the server machine. The example in Connecting Telerik Reporting to OData feeds illustrates how to consume the data deliver by a data service.Note that XML or JSON cannot be consumed directly, and you need to deserialize the data into a .NET object.
You can add the HTML5 Viewer in any web application, where you should consider adding a link to jQuery - HTML5 Viewer in AngularJS project.
We will appreciate your vote and comments for the logged feature request - Angular Report Viewer.
Regards,
Stef
Telerik by Progress
In general, reports are processed and render on the server machine where the Reporting REST service is running. Thus data must be accessible on the server machine. The example in Connecting Telerik Reporting to OData feeds illustrates how to consume the data deliver by a data service.Note that XML or JSON cannot be consumed directly, and you need to deserialize the data into a .NET object.
You can add the HTML5 Viewer in any web application, where you should consider adding a link to jQuery - HTML5 Viewer in AngularJS project.
We will appreciate your vote and comments for the logged feature request - Angular Report Viewer.
Regards,
Stef
Telerik by Progress
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