Telerik Forums
Reporting Forum
1 answer
110 views
I have a LightSwitch application originally written in Visual Studio 2012 with Telerik Reporting Q3 2013. I created a custom control as a container to hold the Report Viewer. I have created many reports, and the Report Viewer successfully renders all of the reports at run-time.

I recently upgraded Telerik Reporting to Q3 2014 SP1 and also upgraded the reports.. The Report Viewer is now blank in the custom control, and all of the reports at run-time just display a blank screen and never generate a report. I have re-created the custom control, and there's still no report viewer. When I reverted back to Q3 2013, deleted the custom control, re-created the control, and Report Viewer displays fine and renders the reports at run-time.

When I preview the reports in the designer, they render just fine.

The XAML for both versions is:

<UserControl x:Class="LongFormCtrls.ReportViewer"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    xmlns:telerikControls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
    xmlns:my="clr-namespace:Telerik.ReportViewer.Silverlight;assembly=Telerik.ReportViewer.Silverlight"
    d:DesignHeight="300" d:DesignWidth="400">

    <Grid x:Name="LayoutRoot" Background="White">
        <my:ReportViewer x:Name="reportViewer1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ZoomMode="PageWidth"
         Report="{Binding Value}"/>
    </Grid>
</UserControl>

Is there a reason why the Report Viewer will not work in Q3 2014 SP1?


Thank you,
Jack
Stef
Telerik team
 answered on 11 Feb 2015
4 answers
696 views

I am new to Telerik Reporting & have started adding Report Viewer to my ASP.net MVC application. In runtime ReportViewer is displaying "Bad Request" & Fiddler is displaying below error message.

Message: POST /api/reports/clients/215829-979c/parameters HTTP/1.1 "Missing report name"

Can you please help me in this.

Report viewer code snippet:

Html.TelerikReporting().ReportViewer()
                   .Id("reportViewer1")
                   .ServiceUrl("/api/reports")
                   .TemplateUrl("/ReportViewer/templates/telerikReportViewerTemplate.html")
                   .ReportSource(Model.ReportSource)
                   .ViewMode(ViewModes.INTERACTIVE)
                   .ScaleMode(ScaleModes.SPECIFIC)
                   .Scale(1.0) 

Report Source in ViewModel
            var settings = new System.Xml.XmlReaderSettings();<br>            settings.IgnoreWhitespace = true;<br><br>            using (System.Xml.XmlReader xmlReader = System.Xml.XmlReader.Create(System.Web.HttpContext.Current.Server.MapPath("~/Reports/Dashboard.trdx"), settings))<br>            {<br>                var xmlSerializer = new Telerik.Reporting.XmlSerialization.ReportXmlSerializer();<br><br>                var report = (Telerik.Reporting.Report)xmlSerializer.Deserialize(xmlReader);<br>                report.DataSource = this.SearchResult == null ? new List<EnquiryPoster>() : this.SearchResult;                <br><br>                this.ReportSource = new InstanceReportSource<br>                {                    <br>                    ReportDocument = report,<br>                };<br>            }


thank you
-nm
Stef
Telerik team
 answered on 11 Feb 2015
1 answer
114 views
We have some very complex reporting requirements and cannot seem to find a chart type that can do everything in the attached image. Looking for series of lines and series of circles points (with no lines).

Can telerik do this in one report?
Stef
Telerik team
 answered on 09 Feb 2015
1 answer
156 views
I have been searched and read many forum posts on hiding subreports. The problem I am having is that all I see is the following code snippet:

 private void subReport1_ItemDataBound(object sender, EventArgs e) 
        { 
            Processing.SubReport subReport = (Processing.SubReport)sender; 
            Processing.Report detailReport = (Processing.Report)subReport.InnerReport; 
            Processing.Report mainReport = (Processing.Report)subReport.Report; 
                 mainReport.Visible = detailReport._filteredCount > 0; 
        } 

I am assuming I put this code in the subreport cs file. However, when I add it, visual studio gives me "The type or namespace 'Processing' could not be found" error. Could someone please give me a more complete example (e.g. Do I need to add a using, and if so which one? Do I need to add a reference, and if so which one? Do I need to add event handlers?)?

Thanks in advance for your help.
​
Hinata
Top achievements
Rank 1
 answered on 09 Feb 2015
1 answer
59 views
I need to group some data while displaying in the report but I do not want show it as a header and line details.
Please see the report-data.png attachment for the data that I get and report-ui.png for the report that I want. Please suggest how can I achieve this?

Thanks,
Raja
Nasko
Telerik team
 answered on 06 Feb 2015
1 answer
83 views
Hi All

I was trying to render the report programmatically in PDF format.
Is there a way where we can set our customize settings like indent, bold etc before rendering.

Any help would be appreciated .
Stef
Telerik team
 answered on 06 Feb 2015
4 answers
76 views
Hello Support,

Like many users here, I am new to reporting. I have been going through the documentation and examples. I just can't seem to wrap my mind around the Totaling part of reports.

My question is, how do I add a Total Field (for example Price), if I went through the Report Wizard? I used a table layout.

I know you can do it as follows:
The way I can do it is, create a blank report, bind my SQL data source to the Report. Drag in the fields, then and a group section for totaling.

I like the table layout and the snap to grid... so I want to try getting it working without binding it to the report.

Hope this makes sense, apologies if it has been asked before, I looked around for a while and could not find the exact question

Thank you
Brenden
Stef
Telerik team
 answered on 06 Feb 2015
1 answer
48 views
Hello Support,

I am starting to get into the full swing of Telerik Reports. A problem I am currently having is the filtering "toolbar".

When I am in Visual Studio (13) and I compile and run my solution the filter toolbar with my input parameters is all messed up. I have filter and parameters for a Date Range, Company ID and Transaction type ID. Basically two Date Time pickers and two drop down lists the user can chose from. Like I said before all works well in the Designer when previewing the Reports.

The issues are:

- The DateTime picker style is bulky.
- When I click on the Date To (second date time picker) it triggers the first date time picker. So I cant set an end date (unless I type it in)
- In the company list the first item disappears?
- In the transaction type drop down list instead of seeing the default text <select a value> it reads &lt;select&160;a&#160;value&gt;

Separate from the filters but another issue is the pagination:
- The paging navigation controls do not work (I can not step through or jump to a page)

I have tried to solve the issue so far but no luck:

- I have made sure the httpHandlers in the web config file are the correct version ( I have 8.2.14.1204)

<add path="Telerik.ReportViewer.axd" verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=8.2.14.1204, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE" />

Is my current setting..

I am not sure what it could be or why it is happening when checking the console in the browser there dont seem to be any errors?

Appreciate the feedback and any ideas?

Thank you
Brenden
​
Stef
Telerik team
 answered on 06 Feb 2015
1 answer
463 views
I want to limit/secure report data based on the user that is logged in. I've set up a Report Parameter to do this, but want the value for this parameter to be populated automatically and hidden.

In SSRS there is a built-in field for this (User!UserID). Does something similar exist in Telerik Reporting?
Hinata
Top achievements
Rank 1
 answered on 05 Feb 2015
1 answer
209 views
Good afternoon,

While working with a report viewer I found an error in the example: How To: Create a Custom Parameter Editor. In the code example the createEditor method makes a call to a jQuery function that sets the html for the element that you pass to the placeholder parameter. The call in the example is misspelled.

Please find the code example below for a working version.  
//misspelled
$(placeholder).htmll('<div></div>');
//should be
$(placeholder).html('<div></div>');

//Code example fixed
<script type="text/javascript">
  $("#reportViewer1")
  .telerik_ReportViewer({          
   parameterEditors: [
    {
     match: function (parameter) {
      return Boolean(parameter.availableValues) && !parameter.multivalue;
     },     createEditor: function (placeholder, options)  {
      var dropDownElement = $(placeholder).html('<div></div>'),
          parameter,
          valueChangedCallback = options.parameterChanged,
          dropDownList;          function onChange() {
         var val = dropDownList.value();
        valueChangedCallback(parameter, val);
         }      return {
       beginEdit: function (param) {        parameter = param;        $(dropDownElement).kendoDropDownList({
         dataTextField: "name",
         dataValueField: "value",
         dataSource: parameter.availableValues,
         change: onChange
        });        dropDownList = $(dropDownElement).data("kendoDropDownList");
       }
      };
     }
     }]
  });       
</script>
Stef
Telerik team
 answered on 05 Feb 2015
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?