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

Using object and nested objects as datasource

3 Answers 163 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
LE DREAU Steeve
Top achievements
Rank 1
LE DREAU Steeve asked on 08 Mar 2010, 04:15 PM
Hi All,

I'm quite new to telerik reporting and wish to use an object as a datasource, a sort of reportmodel (like the viewmodel in MVVM pattern).
With that use, I will be sure to separate my reports from my datas.
But I didn't found anything that tells me i can use nested properties from my datasource.

Does Telerik Reporting tool support this ?
Thanks

BR,

Steeve

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 11 Mar 2010, 01:27 PM
Hello COLIN Thierry,

With the last Reporting version Q1 2010 we have introduced a new component objectDataSource.
Any of the following data sources can be assigned to the DataSource property of the objectDataSource component:


Regarding your second question we support nested properties. You can use them the same ways as the ordinary properties. For example =Fields.Client.Address. We suggest you give it a try first and let us know if you have any specific questions.

Regards,
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.
0
LE DREAU Steeve
Top achievements
Rank 1
answered on 15 Mar 2010, 09:48 AM
Hi Peter,

I'll give it a try as soon as we migrate to the new release.

Regards,

Steeve
0
Matthias Auswöger
Top achievements
Rank 1
answered on 24 Mar 2010, 04:57 PM
Hi All,

I'm also new to telerik repoting and tried also to use objects as datasource,
and nested properties also work well.
There is one Question I have:

If i use a IEnumerable as Datasource which contains some Person-Objects.
The Person-Class has a Property "public IEnumerable<Phone> PhoneNumers { get; }".
How can i set the DataSource of the PhoneNumbersList in the PersonsList to the Value of the PhoneNumbers-Property?

Thanks

Regards,
Matthias Auswöger
Tags
General Discussions
Asked by
LE DREAU Steeve
Top achievements
Rank 1
Answers by
Peter
Telerik team
LE DREAU Steeve
Top achievements
Rank 1
Matthias Auswöger
Top achievements
Rank 1
Share this question
or