Binding to a POCO

5 posts, 0 answers
  1. Jim
    Jim avatar
    27 posts
    Member since:
    Jun 2008

    Posted 23 Apr 2010 Link to this post

    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
  2. Peter
    Admin
    Peter avatar
    1611 posts

    Posted 27 Apr 2010 Link to this post

    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.
  3. DevCraft banner
  4. Jim
    Jim avatar
    27 posts
    Member since:
    Jun 2008

    Posted 27 Apr 2010 Link to this post

    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.
  5. Peter
    Admin
    Peter avatar
    1611 posts

    Posted 30 Apr 2010 Link to this post

    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.
  6. Jim
    Jim avatar
    27 posts
    Member since:
    Jun 2008

    Posted 30 Apr 2010 Link to this post

    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.
Back to Top
DevCraft banner