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

reports / entity Framework / ViewModel

3 Answers 97 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Arnaud
Top achievements
Rank 1
Arnaud asked on 26 Dec 2013, 05:14 PM
Hi,

Sorry for my poor english ;)

I use wizard to create a report. In wizard I can access to all properties of exPerio, but I can't on any members of the list. Have you an Idea to solve this ?

Thanks you.

public class ReportEnCirculationVM
    {
        public IList<MembreCirculation> membresCirculation { get; set; }
        public ExemplairePeriodique exPerio { get; set; }
...
}

3 Answers, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 26 Dec 2013, 06:05 PM
Hello Arnaud,

When you wrap your business object with a data source component it will drill down only to its first level properties. If you need to bind a data item to a collection property of the business object you will need to type the expressions by hand.
For more details, please take a look at the following articles:

I hope this helps you.

Regards,
Stef
Telerik

New HTML5/JS REPORT VIEWER with MOBILE AND TOUCH SUPPORT available in Telerik Reporting Q3 2013! Get the new Reporting version from your account or download a trial.

0
Arnaud
Top achievements
Rank 1
answered on 27 Dec 2013, 10:59 AM
Hi stef,

Thank you for your reply.

I have tried the solution given in the second link. I use binding properties, but I still have nothing in my list.

If I can access to all properties of exPerio, I have nothing visible on the display of the report, while it worked before using binding propertie of the list of membresCirculation.


Thanks you.

0
Stef
Telerik team
answered on 27 Dec 2013, 05:24 PM
Hi Arnaud,

Please verify the nested data item's DataSource is not set anywhere in code, that using binding the DataSource property is set to the collection property. Then check if the fields used in the nested data item exist in the object type of the collection property, and that the collection property returns any records.

If you need further help, please post the designer.cs(vb) code of your report definition and a sample of the data organization.

Regards,
Stef
Telerik

New HTML5/JS REPORT VIEWER with MOBILE AND TOUCH SUPPORT available in Telerik Reporting Q3 2013! Get the new Reporting version from your account or download a trial.

Tags
General Discussions
Asked by
Arnaud
Top achievements
Rank 1
Answers by
Stef
Telerik team
Arnaud
Top achievements
Rank 1
Share this question
or