Nested object with table inside table inside table

3 posts, 0 answers
  1. Swostik Lamichhane
    Swostik Lamichhane avatar
    6 posts
    Member since:
    May 2010

    Posted 29 Mar 2011 Link to this post

    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. Peter
    Admin
    Peter avatar
    1611 posts

    Posted 01 Apr 2011 Link to this post

    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
  3. DevCraft banner
  4. Swostik Lamichhane
    Swostik Lamichhane avatar
    6 posts
    Member since:
    May 2010

    Posted 01 Apr 2011 Link to this post

    Great... Panel works.

    Thank you
Back to Top