Telerik Forums
Reporting Forum
1 answer
59 views
Hi,
I have to create a report for many item (animal), for each animal there are a header section with general information and a detail section with the list of birth (number of children, average weight etc..).

I use report parameter to pass the animal id from my silverlight application.

I start with report for single animal: in the header and footer I insert textbox with date and animal id, in detail section I insert general animal's informations and a table with list of birth.

As datasource I use my custom class Animal that contains general information and an List<BirthInformation> called ListBirth.

I create two datasource, ds1 for the report with Animal class and ds2 for the table with birth information setting datasource to Animal and DataMember to ListBirth. I had to make the second datasource for see the member of the list ListBirth

In the report's code I use NeedDatasource event, so on constructor I put the report datasource to null, and in the event handler I use the code:

Animal a = GetAnimal(id);
this.DataSource = a;
this.table4.DataSource = a.ListBirth;  

The report work fine.

Is this correct way to work?

I need now to make the report (single) form many animal whit a page break from an animal and the next, but I don't understand if I do to use a group or a new report with this report as subreport in a table and how to set the datasource.

Thank you very much.
andrea

Peter
Telerik team
 answered on 26 Apr 2011
1 answer
187 views
We have a variety of reports that we have set up with some parameters. For instance we have a High/Medium/Low filter that has a drop down at the top of the report. Our issue is this dropdown displays ParameterItem+SelectAllItem on one report instead of High Medium Low (or even Select Priority, which is preferred). In the ReportParameter Collection Editor in the Available Values section we are tied to a entityDataSource. The DisplayMember is =Fields.RecruitPriorityValue  We have a variety of filters/parameters that we use for quite a few new reports and this is an issue for all of them.

Steve
Telerik team
 answered on 26 Apr 2011
3 answers
89 views
I am getting the following error message when I try to drag and drop a Subreport in the PageHeader Section of my report.  I can add the Subreport to the ReportHeader, but not the PageHeader.  Why??????

Error Message:  Cannot add subReport1(Telerik.Reporting.SubReport) to pageHeaderSection1(Telerik.Reporting.PageHeaderSection)

I am using  Visual Studio 2008 SP1 and Telerik Reporting 2009 Q2

Thanks,

Charlie J.
Steve
Telerik team
 answered on 26 Apr 2011
4 answers
126 views
Hi,

    Is there an event run when the user clicks on the Action of a report E.G

    Drill report Liks to a Sub report.

    When user clicks to load this report Fire Event user wants to load X Report..

   What i would love would be an action to "run action even", so that when a user clicks a code on the report we cold load a code edit window in our main app.
Travis
Top achievements
Rank 1
 answered on 25 Apr 2011
6 answers
621 views
I have two input parameters type of Guid.
I set default values for parameters like d6a0d1a8-0d5d-4850-9930-5670dfa26403 or 'd6a0d1a8-0d5d-4850-9930-5670dfa26403'

When report preview I have error : Failed to convert parameter value from a string to Guid.

What is wrong?
Massimiliano Bassili
Top achievements
Rank 1
 answered on 22 Apr 2011
8 answers
1.4K+ views
Hi All,

I'm interesting is it possible to use Business Object Datasource for reporting ?

I mean how to display complex values, let me explain with example:

I have classes:
public class SubClass  
{  
  public string Name {get;set;}  
}  
 
public class MyClass  
{  
  public string Name {get;set;}  
  public SubClass subClass {get;set;}  

And also have a
List<MyClass> list = MyBusinessLogic.GetList(); 

I know how to set report datasource to list, but how to display MyClass.subClass.Name ?
 =Fields.subClass.Name don't work.

Thanks.
japss
Top achievements
Rank 1
 answered on 22 Apr 2011
1 answer
77 views
If I create a chart, and choose a DataSource for it via the properties menu, then add a series to the chart.  Why are the dropdowns all blank for "DataLabelsColumn, DataXColumn, etc.)?
Steve
Telerik team
 answered on 22 Apr 2011
2 answers
125 views
Hi,

I am using Telerik Report Q3 2010 + Silverlight for.

<telerik:ReportViewer x:Name="sampleReport" ReportServiceUri="../ReportService.svc"
                              Report="sampleReportDetail, Server" />


the sampleReportDetail reside in Server and populate domain service data in NeedDataSource.

Is there anyway that i can cache the complete report, so that whenever the "View Report" button is clicked, it will not even hit the Server ReportService?

Thanks alot.
Massimiliano Bassili
Top achievements
Rank 1
 answered on 22 Apr 2011
11 answers
1.2K+ views
Has anyone come up with a way to work around the limitation of not being able to show a header on each page within a subreport?

What if I limit the number of records that I have on a given page to say, 25, and force the pagination at that point?

Since my rows can size dynamically due to text wrapping, this really isn't an ideal solution, but it has now become a requirement that headers appear on all pages.

Thanks for the help!
Steve
Telerik team
 answered on 22 Apr 2011
2 answers
134 views
Hi,
I have a table with avg summaries. When the type column is int32, the avg value is int,  the last two decimal places are always .00.
I try to set the format {0:#0.00} but the avg value is still int.
There is a way to get a float or double value for avg function with an int32 column?

thank you very much.
andrea
Top achievements
Rank 1
 answered on 22 Apr 2011
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?