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

Nested object with table inside table inside table

2 Answers 902 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Swostik Lamichhane
Top achievements
Rank 1
Swostik Lamichhane asked on 29 Mar 2011, 05:49 PM
My problem:
It seems like i can have table inside table upto 2 layer and my third nested table only prints the first data of my nested collection.

I found help where List inside list inside list.....  but I am looking for table inside table inside for my nested object data.
http://www.telerik.com/community/forums/reporting/telerik-reporting/list-in-list-in-list-etc.aspx


So, i have my object set like this (see attached .png):
My Data class contains:  
        List<SampleModel>
        {    
                new SampleModel
                {
                       contain List<SampleSubItem>
           {
               contain List<Sample2SubItem
               {
                    contain List<Sample3SubItem>
    
            }
                    }
            }
      }
}

If you see the attached "report2.png", it shows the preview of my report..
My first table (white color) is good
Its nested table and object SubItem (orange color) is good
its nested table and object Sub2Item (green color) looks good but the data is incorrect. They are all showing first index of the list, that is, Sub2Item 1
its nested table and object Sub3Item should error.

Any help would be great or Is subreport the only fix?

Thank

2 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 01 Apr 2011, 01:58 PM
Hi Swostik Lamichhane,

The main difference between List/Table/Crosstab report items are the initial groups and the List has for its initial item a Panel. Generally to nest data items like Table you have to use Panels between the data items. Give it a try and if you still experience any difficulties our suggestion to enlarge the problematic Table in order to see the entire error.

If you need additional assistance we will appreciate if you open a support thread and send us a sample runnable project to debug locally.

Kind regards,
Peter
the Telerik team
0
Swostik Lamichhane
Top achievements
Rank 1
answered on 01 Apr 2011, 06:21 PM
Great... Panel works.

Thank you
Tags
General Discussions
Asked by
Swostik Lamichhane
Top achievements
Rank 1
Answers by
Peter
Telerik team
Swostik Lamichhane
Top achievements
Rank 1
Share this question
or