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

multi linq binding

1 Answer 99 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
pavel
Top achievements
Rank 1
pavel asked on 11 May 2012, 09:49 AM
Hello
My report has a lot of Linq query to display the collection into multiple tables of the report.
by reference http://www.telerik.com/community/forums/reporting/telerik-reporting/linq-or-business-object-datasource.aspx Described only as a binding collection in a single table.

I also report to the class of collections of multiple properties.
How are they tied to other tables.
that appear in the order. 

public partial class BusinessObjectsReport : Report
{
    public BusinessObjectsReport()
    {
        /// <summary>
        /// Required for telerik Reporting designer support
        /// </summary>
        InitializeComponent();
          
      this.DataSource = Collection_1 as IEnumerable<item1>; //(it appears)
      this.Table_2.DataSource = Collection_2 as IEnumerable<item2>; //(how to bring?)
      this.Table_3.DataSource = Collection_3 as IEnumerable<item3>;//(how to bring?)
      this.Table_4.DataSource = Collection_4 as IEnumerable<item4>;//(how to bring?)
    }
}

Give an example of a design report, please 


1 Answer, 1 is accepted

Sort by
0
pavel
Top achievements
Rank 1
answered on 12 May 2012, 12:36 PM
I decided to do both.
http://demos.telerik.com/reporting/invoice-report/video.aspx 

It was necessary to create nested "SubReport control",
create subreports with tables. 
And in the main report designer(code) to change the objects() to Public.

public Telerik.Reporting.SubReport subReport_1;
public Telerik.Reporting.SubReport subReport_2;
public Telerik.Reporting.SubReport subReport_3;
public Telerik.Reporting.SubReport subReport_4; 
public Report_1 report_1;
public Report_2 report_2;
public Report_3 report_3; 
public Report_4 report_4; 
Tags
General Discussions
Asked by
pavel
Top achievements
Rank 1
Answers by
pavel
Top achievements
Rank 1
Share this question
or