Displaying ObjectSource Collections

2 posts, 0 answers
  1. Eric
    Eric avatar
    5 posts
    Member since:
    Dec 2013

    Posted 02 May 2015 Link to this post

    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?


  2. Nasko
    Nasko avatar
    941 posts

    Posted 05 May 2015 Link to this post

    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.


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

Back to Top