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

How do I bind those data?'

1 Answer 86 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Michele
Top achievements
Rank 2
Michele asked on 19 Sep 2011, 10:24 AM
Hello,
I've got an object defined as

public int ID {get;set;}
public List<Dummy>Oggetti {get;set;}

public class Dummy
{
public int Numero {get;set;}
public string Descrizione {get;set;}
}

How do I bind the list<dummy> to the detail? considering that I' need to bind the ID field of the main object to the main report?
Thanks

Paolo

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 21 Sep 2011, 12:42 PM
Hello Paolo,

In order to use nested data collections our suggestion is to nest data items (SubReports, Table, List, Crosstab, Chart) and set the data items' DataSource property with binding to the field representing the complex type. In case of nested Table/Crosstab/List the nested item should be placed inside a panel item. This way the nested collection is accessible as normal field. Generally the easiest approach is to use List/Table item because you don't have to create additional report for every data level. Please review the following forum thread that elaborates on your inquiry: Data Source Business Objects.

Kind regards,
Peter
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
General Discussions
Asked by
Michele
Top achievements
Rank 2
Answers by
Peter
Telerik team
Share this question
or