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

Using nested collection into table

2 Answers 66 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dario Concilio
Top achievements
Rank 2
Dario Concilio asked on 19 Apr 2016, 08:02 AM

Hi to all,

I'm trying to use a ObjectDataSource, this one is configurated using a method that return a single object, this object has several collection (List<OtherMyObject>) as property.

If I what show my first object (several property as string or datetime), and then show something of relatives collection into a table?

I note that in DataExplorer dock shows my collections but I don't see its properties.

How can I set my Table with this collection, setting relative properties?

2 Answers, 1 is accepted

Sort by
0
Accepted
Stef
Telerik team
answered on 20 Apr 2016, 12:52 PM
Hello Potito,

You can add a temporary data source component to design a nested data item that will visualize the additional data. Then remove the data source component and apply a binding to the collection property field.

For more details, please check How to Databind to Collection Properties and How to use the ReportItem.DataObject property in expressions.


Let us know if you have any further questions.

Regards,
Stef
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Dario Concilio
Top achievements
Rank 2
answered on 21 Apr 2016, 09:20 AM

Yes, thank you,

I used a the collection property (collection in binding) into a table object, then I used ReportItem.DataObject.MyPropertyOfEntityOfNestedCollection.

Very good!

Tags
General Discussions
Asked by
Dario Concilio
Top achievements
Rank 2
Answers by
Stef
Telerik team
Dario Concilio
Top achievements
Rank 2
Share this question
or