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

Binding to a POCO

4 Answers 135 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jim
Top achievements
Rank 1
Jim asked on 23 Apr 2010, 11:01 PM
I'm new to Telerik reporting and am looking for any examples of binding the report to a class object containing a generic list.

Thanks

4 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 27 Apr 2010, 03:28 PM
Hi Jim,

Open the Visual Studio examples that are shipped with the reporting installation and take a look at the List Bound Report demo report which is bound to a generic list.

All the best,
Peter
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
0
Jim
Top achievements
Rank 1
answered on 27 Apr 2010, 06:07 PM
Does this demo work for 2010 Q1?  When I try to add a new data source, Business Object is not a choice.  I am given the choice of  SqlDataSource or ObjectDataSource.  Using the ObjectDataSource I am able to navigate to my business object and select it as the report data source, however it does not show up in the Data explorer.
0
Peter
Telerik team
answered on 30 Apr 2010, 06:09 PM
Hi Jim,

The DataExplorer is empty when the Business Object can't be instantiated. We have a few suggestions\questions:
  • Does the Business Object you want to bind to have a default constructor?
  • Have you tried to debug by setting a try and catch blocks inside the called method with a MsgBox?
  • Have you tried to debug Visual Studio so that you can view the stack trace when the error occurs (set the debugging studio to stop on any exception)?

Greetings,
Peter
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
0
Jim
Top achievements
Rank 1
answered on 30 Apr 2010, 07:14 PM
I found the problem, it was the fact that the constructor is dependent on other classes.  When I run the report in a report view it works perfectly.  I'm just giving up the ability to preview the report in design time.
Tags
General Discussions
Asked by
Jim
Top achievements
Rank 1
Answers by
Peter
Telerik team
Jim
Top achievements
Rank 1
Share this question
or