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

Question regarding putting sub report in a list

7 Answers 174 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bi Chao
Top achievements
Rank 1
Bi Chao asked on 28 Feb 2011, 07:34 AM
Hi,

I tried to put a sub report in a list of 3 items,  but the subreport only took the information from the first item and repeated for 3 times.

Im not sure what I have missed.  Could you provide me an sample project to help me set it up?  Much appreciated!


Regards,
Bill 

7 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 01 Mar 2011, 06:39 PM
Hello Bi Chao,

This is a known issue that is logged in our bug tracking system. However there is an easy workaround, just add a Panel item between the List's cell and the Subreport item (List Cell->Panel->SubReport) This way you will force the Subreport to get the required data from the correct scope.

All the best,
Peter
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Bi Chao
Top achievements
Rank 1
answered on 02 Mar 2011, 03:30 AM
Thanks Peter!

I tried the workaround,  but it didn't worked for me.  I also tried with the table cells and it didn't work as well.


Regards,
Bill
0
Accepted
Peter
Telerik team
answered on 07 Mar 2011, 03:55 PM
Hello Bi Chao,

In order to further investigate the cause for the described behavior we will need a sample project. Thus, we will appreciate if you open a support thread and send us a sample runnable project to debug locally.

All the best,
Peter
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Bi Chao
Top achievements
Rank 1
answered on 07 Mar 2011, 10:54 PM
Hi Peter,

Thanks for your response.

I have resolved this issue by create a new property to return the context object.  then bind the list to that property.


Regards
Bill
0
Roland
Top achievements
Rank 1
answered on 24 Nov 2012, 09:21 PM
Hello

I have a similar problem, using 2012 Q3. I have a list bound to Product types in the master report. The subreport is in the list and the ProductId property is passed as parameter. The subreport only seems to get the ProductId of the first Product and repeats that. 

Is using parameters (integer IDs) the right way to solve this? Is there a possibility to pass complex types to the subreport?

Roland
0
Peter
Telerik team
answered on 26 Nov 2012, 12:51 PM
Hello Roland,

Have you tried to add a Panel item between the List's cell and the Subreport item (List Cell->Panel->SubReport) This way you will force the Subreport to get the required data from the correct scope?

All the best,
Peter
the Telerik team

HAPPY WITH TELERIK REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

0
Roland
Top achievements
Rank 1
answered on 27 Nov 2012, 08:24 AM
Hi Peter

The List's cell is already a panel item as I saw. But tried with one more panel inbetween reading previous posts, but didn't help.
Finally I solved the problem setting the datasource of the subreport programatically.

Regards,
Roland
Tags
General Discussions
Asked by
Bi Chao
Top achievements
Rank 1
Answers by
Peter
Telerik team
Bi Chao
Top achievements
Rank 1
Roland
Top achievements
Rank 1
Share this question
or