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

ASP .NET MVC Using ObjectDataSource

5 Answers 97 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Aubrey Ivan
Top achievements
Rank 1
Aubrey Ivan asked on 28 Oct 2019, 02:55 AM
Hi, I want to create a MVC Application which uses an external API where I will get my data from. Its my first time using telerik reporting and I think I'm supposed to use the objectDataSource component based on the documentation, because I don't need to use the sqlDatasource. Does anyone have any repos or demo app that I can follow? I would really appreciate it. Thanks.

5 Answers, 1 is accepted

Sort by
0
Aubrey Ivan
Top achievements
Rank 1
answered on 29 Oct 2019, 03:40 AM
I've solved it, it seems that using the 'reports' as the htmlviewer id is somehow breaking the application...
0
Aubrey Ivan
Top achievements
Rank 1
answered on 29 Oct 2019, 03:46 AM
I've commented to the wrong post, I still need to figure this out.
0
Todor
Telerik team
answered on 30 Oct 2019, 02:40 PM

Hello Aubrey Ivan,

If your data is supposed to come from a Web Service you may use our dedicated WebServiceDataSource component. You may check the step-by-step tutorial How to: Connect to Google Books APIs.

In other cases, you may indeed use the ObjectDataSource component. We provide a sample with our demos that come with the installation of Telerik Reporting. The demos are deployed by default in (Telerik Reporting installation folder)\Examples\CSharp or VB (e.g. C:\Program Files (x86)\Progress\Telerik Reporting R3 2019\Examples\CSharp). The ReportLibrary project contains our CLR reports. The report using an ObjectDataSource is ListBoundReport in the sub-folder DataBinding of the project. The model (Car) and the data providing class (Cars) are in the same folder.

I suggest to test and if you have any difficulties you may open a support ticket and ask further questions.

Regards,
Todor
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
0
Aubrey Ivan
Top achievements
Rank 1
answered on 31 Oct 2019, 06:47 AM
Hi, I posted another question, I keep getting No Report Message from the ASP .NET Report Viewer.. can you give me some ideas please?
0
Todor
Telerik team
answered on 04 Nov 2019, 04:42 PM

Hello Aubrey Ivan,

The error message 'No Report' in the Html5 Viewer usually means that there is no reportSource assigned to the viewer. I suggest checking How to: Set ReportSource for Report Viewers article.

Regards,
Todor
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
Aubrey Ivan
Top achievements
Rank 1
Answers by
Aubrey Ivan
Top achievements
Rank 1
Todor
Telerik team
Share this question
or