Bindng to Object with lists and array

4 posts, 1 answers
  1. Bronnikov
    Bronnikov avatar
    8 posts
    Member since:
    May 2013

    Posted 27 May 2013 Link to this post

    Hello, I have some problem with binding to object like

    class ObjectDataSource {   
         public List<Product>  ProductListMain;
         public List<Product> ProductListSecond;
         public IdValue[] Parameters;
    class Product {
        public string Name;
        public int Count;
    class IdValue {
        public int Id;
        public int Value;

    I can't create correct report to show me 3 different tables, where 2 first table get data from Lists and the 3-rd table get data from array.
    Please show me the right path.
  2. Answer
    Stef avatar
    3610 posts

    Posted 30 May 2013 Link to this post

    Hello Aleksandr,

    Please check the attached sample report illustrating how to use the nested collections of your object data source as data for Table items in it. Notice how the Table items DataSource properties are bound to specific collection using binding expression.

    I hope this helps.


    Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.

  3. Bronnikov
    Bronnikov avatar
    8 posts
    Member since:
    May 2013

    Posted 30 May 2013 Link to this post

    Thanks a lot
  4. Vijayan
    Vijayan avatar
    3 posts
    Member since:
    Aug 2014

    Posted 02 Jan 2018 in reply to Stef Link to this post

    I am using object data source to bind the data. But I am breaking my head to fix the list of objects in the report designer which is failing in the preview report. my business model returning List of objects from a class. like, 

    Public class Master


         public int id {get;set;}

        public string name {get;set;}
        public string deptname {get;set;}

        public List<content>  content {get;set;}


    public class content


    public int contentID{get;set;}

    public string contentName {get;set;}


    My businesslogic method like below, 

    public async Task<List<Master>> GetAppointmentToken(string AppNo)


    ----------Business return list of objects of Master----------



    1. how do I define a object in the report?  ( =Fields.Master.ID) or (=Fields.ID)

    2. Given model (Content) how do I bind in the report ? (=Fields.Master.Content.ID)  

    Could you please give me same report for "Report Designer Q2 2015" version. The one you attached is an old version of Telerik report.


Back to Top