Tabular design

2 posts, 0 answers
  1. Anzar
    Anzar avatar
    62 posts
    Member since:
    Sep 2012

    Posted 13 Mar 2013 Link to this post

    Hi,
    I want to design  telerik report like below attachment. How to  create tables in reports?. Also the data source is from a data set, containing multiple tables like basic details,qualification details and travel details. How to set all of the data table's as a data source for report?.

    Thanks & Regards
    Anzar.M
  2. Hadib Ahmabi
    Hadib Ahmabi avatar
    181 posts
    Member since:
    Nov 2011

    Posted 15 Mar 2013 Link to this post

    The table can be dragged from the toolbar and that's about it (read more here http://www.telerik.com/help/reporting/table-working-with-table-cross-table-list-items.html)

    As to the DataSet - you can use the DataSource of the report and on ItemDataBinding swap the data-sources:
    private void Report2_ItemDataBinding(object sender, EventArgs e)
    {
        var ds = this.DataSource as DataSet;
        this.table1.DataSource = ds.Tables[0];
        this.table2.DataSource = ds.Tables[1];
        //...
        //set the report's DataSource to null
        this.DataSource = null;
    }

    You can also create a public property on the Report class which will take DataSet and when it is set, you can manually set each DataTable as DataSource to the corresponding report table but I believe the first approach is simple enough
  3. DevCraft banner
Back to Top