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

Displaying ObjectSource Collections

1 Answer 218 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
almostEric
Top achievements
Rank 1
Iron
Iron
almostEric asked on 02 May 2015, 11:39 PM

I have a report bound to an ObjectDataSource. These among the properties these objects have, one is itself a collection of objects. I want to display the individual values with these collections as well. I assume some combination of creating a group and a crosstab would work, but I am not seeing anything.

 

If the property is Fields.Collection and I create a group based on that, how do I refer to the Collection's properties in the detail panel? Fields.Collection.Property or just Fields.Property?

 

1 Answer, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 05 May 2015, 10:39 AM
Hello Eric,

When there is another business object property within your business object we do not drill down into the hierarchy. To use the inner object you have to bind a Data Item to it using expressions and bindings. For more detailed information, please follow the Use DataObject as a datasource for nested data items (Table, List, Crosstab, Graph) section of the How to use ReportItem.DataObject property in expressions help article. This way you can bind the DataSource property of a data item to a given object/collection property from your business object and the data item will display the inner items.
In case you have multiple levels of nested objects, you will also need to nest data items in multiple levels in the report.
When you add a binding to the DataSource property of a nested data item (List, Table, Report), the data fields will not be available during design-time and you will need to write them manually based on the business object structure.

Regards,
Nasko
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
Report Designer (standalone)
Asked by
almostEric
Top achievements
Rank 1
Iron
Iron
Answers by
Nasko
Telerik team
Share this question
or