Telerik Forums
Reporting Forum
2 answers
323 views
Hi guys,

I would like to create the dynamic report where the most of UI will be created based on the data source information.
My data source depends on two report parameters which are received from html5 viewer.
I can see that I can use the NeedDataSource event handler to retrieve the report parameter values and then populate the report data source.

Ideally, I would like to programmatically build the report UI during the initialization stage, e.g. in the InitializeComponent() method. But I need to get the report parameter values.
Is it possible to get the values of the report parameters in the report constructor?
Or how can I pass the report parameter values from html5 viewer so I could get them before creating the report UI? 

Thanks,
Sergey. 
Sergey
Top achievements
Rank 1
 answered on 17 Mar 2014
1 answer
178 views
I have a report with a detail section that has a few html textboxes that have the value bound to a field. If that field is empty, I want the html textbox to shrink. I have CanShrink set to true. It works for regular textboxes. Am I missing something?

In the designer code I also set the visibility to false and the height and widths but it still keeps the report spaced out.

        private void detail_ItemDataBound(object sender, EventArgs e)
        {
            Telerik.Reporting.Processing.DetailSection procDetail = sender as Telerik.Reporting.Processing.DetailSection;

Telerik.Reporting.Processing.HtmlTextBox txtSpecialTests = (Telerik.Reporting.Processing.HtmlTextBox)Telerik.Reporting.Processing.ElementTreeHelper.GetChildByName(procDetail, "txtSpecialTests");

            if (txtSpecialTests != null)
            {
                if (txtSpecialTests.Value.ToString() == "")
                {
                    txtSpecialTests.Visible = false;
                    txtSpecialTests.Height = new Unit(0);
                    txtSpecialTests.Width = new Unit(0);
                }
            }
}

Thanks,

Zack
Peter
Telerik team
 answered on 17 Mar 2014
4 answers
153 views


I have a GRAHP bar chart that works graet with 10 records coming from the database, however when thre are 100 records, they are very narrow and hard to read.

This graph is in library and its DataSource is binding directly from the database procedure to the graph so there is no place to check for number of records in the C# code.

Would it be possible to have the width of the bars always the same and if there are 10 records, they would display on first page, if there are 100 records, then the X axis would extend to the right and display on the next pages? Can this be accomplished in the designer settings?

The graph contains cartesian coordinate system, datasource (stored procedure), bar series, category and numerical scale.

(All data has to be displayed, I cannot use filters.)

Joan
Top achievements
Rank 1
 answered on 14 Mar 2014
4 answers
110 views
I just attempted to upgrade all our Telerik controls in our Silverlight application from Q1 2013 to Q1 2014. Everything seems to work OK except the Reporting. When I bring up our report viewer page, the screen is empty - the ReportViewer control does not even appear.

I ran the Report Upgrade Wizard to move our reports from 7.0.13.220 to 8.0.14.225.

When the page loads, it is calling - successfully - to the ReportService.svc on the web side when I attempt to ListAvailableReports. The ListAvailableReportsCompleted event is firing and returning all the reports. My code finds the correct report and then sets the Report property of the ReportViewer control to the FullName property of the appropriate returned Telerik.Reporting.Service.ReportInfo object. (This is the fully qualified name of the object).

However, when the function is left, the ReportViewer does not attempt to communicate with the ReportService.svc service as it did in the previous version of the controls. I have verified this using Fiddler. Fiddler shows that the call to ListAvailableReports is made, but that is the only call. In the old version of the controls, the following methods of the WCF Service are called, in this order:

RenderAndCache
ListAvailableReports
ListRenderingExtensions
RenderAndCache
GetPage

Any idea why this would be broken in the latest release? Is there some property on the ReportViewer I must set to have it automatically generate the report? Is there a method I can call to force the ReportViewer to render the page?
Nasko
Telerik team
 answered on 14 Mar 2014
1 answer
125 views
Hi All,

Is this possible to add the Telerik Q1 2014 Report Viewer Control (Version 8.0.14.225) as Web Part in SharePoint 2010.
If Yes then please send me the details of configuration settings which has to be done.

As per my requirement I should be able to add the Report viewer control as a web part in SharePoint 2010 where I can set the path of the Reports.

Thanks,
Seeshil Kumar
Peter
Telerik team
 answered on 14 Mar 2014
8 answers
679 views
Hi Telerik

Im playing around with a graph with two series. A stacked Bar and a line. (A bit like the demo http://www.telerik.com/help/reporting/graphhowtocreategraphwithcolumnandlineseries.html)
Ive got separate Y axis as well. (http://www.telerik.com/help/reporting/graphhowtoaddsecondaryaxis.html)


At processing time, ie in the itemdatabinding event for the graph,is it possible to hide the Y axis for either or both Yaxis?

I use the following...

var processingGraph = (Telerik.Reporting.Processing.DataItem)sender;
var graph = (Telerik.Reporting.Graph)processingGraph.ItemDefinition;

// Hide the 
 (graph.Series[1].CoordinateSystem as CartesianCoordinateSystem).YAxis.Style.Visible = false;   
and then show it again with ...
 (graph.Series[1].CoordinateSystem as CartesianCoordinateSystem).YAxis.Style.Visible = false;   
But this leaves the major step markers....


Any ideas?


Mike















Ivan Hristov
Telerik team
 answered on 14 Mar 2014
5 answers
221 views
Hi

I'm going backwards and forwards with this, and I'm not even sure what I need to search for.

Following Best practice I have my report data in a separate class., but I'm trying to use the  standalone report designer.

How do I connect my existing data in these classes to the stand alone report.

Andy
Andy Green
Top achievements
Rank 2
 answered on 14 Mar 2014
1 answer
271 views
Hoopefully one with an easy answer

I have multiple columns in the report that are mapped to  sql.bit type fields that displays as a checkboxs and I am wondering how i can get a Total of the column

Basically, when the column has 'true' in it I would like to sum (or count) these occurances and have it display in the footer

Thanks in advance.
Danyell
Top achievements
Rank 1
 answered on 14 Mar 2014
5 answers
142 views
Hi,

I have a fairly old version of Telerik Reporting - v 5.0.11.510 dated May 10th 2011 to be precise.  I have been using it with VS2010 Pro but am now migrating various projects to VS2013. 

Will I be able to use my version of Reporting with VS2013?  For the projects in question I can't really justify the $499 upgrade cost.

Michael
David
Top achievements
Rank 1
Iron
Veteran
Iron
 answered on 13 Mar 2014
1 answer
125 views
I have a report viewer Q1 2014 v 8.0.14.225 in a radwindow. the report displays fine, but for some reason the
report keeps refreshing in the background. on the report parameters I have set the autorefresh to false.

What else can I look at or do to keep this from happening.


Thanks

Troy
Stef
Telerik team
 answered on 13 Mar 2014
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?