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

Binding to Business Object

1 Answer 90 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dave Myers
Top achievements
Rank 1
Dave Myers asked on 30 Jul 2010, 10:48 PM
I created a report and set up the objectdatasource as a "common type" that we use.  The "common type" has a structure of:

Class OrderSession
Property Name As String
Property ID As Integer
Property Orders As OrderList
End Class

The OrderList class contains a list of orders, with each order containing a list of OrderItems.  When I set the datasource as an order session..the only properties I can get to print in the details section are ID and Name.  Everything else causes a red box to display saying something about not having access to the field.  How would I go about printing properties from the Order and OrderItem in the details section?

I am new to Telerik Reporting but have used Crystal for a long time.  Any help on how to do this would be appreciated.

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 03 Aug 2010, 10:52 PM
Hi Dave Myers,

Because it is a collection property within your business object, we do not drill down into the hierarchy. If your purpose is to bind a data item (i.e. report, table, chart) to this collection, you can use the Bindings property. This way you can bind declaratively the DataSource property of a data item to a given collection property from your business object and the data item will display all the collection items. To illustrate this approach better I have attached a small sample report to my post. If you need more information regarding this you can visit the following help topic from our online documentation which discusses property bindings via expressions more in-depth.

Sincerely yours,
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
Tags
General Discussions
Asked by
Dave Myers
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or