Telerik Forums
Reporting Forum
1 answer
220 views

Hello,

 

I recently set up a report in ASP.NET MVC. The report viewer is created using the HTML helper in the razor view. Everything works except for the date pickers for some ReportParameters and the dropdown menu for exporting the report.

When I hover/click on either of those controls I get the following JS error: elem.getClientRects is not a function

I suspect I am missing a JS file.

The JS files included in the page are (in order of inclusion):

  1. telerikReportViewer.kendo-11.0.17.222.min.js
  2. telerikReportViewer-11.0.17.222.min.js

The CSS files included are (in order of inclusion):

  1. kendo.common.min.css
  2. kendo.blueopal.min.css

The ENTIRE view for the report viewer looks like:

@model Telerik.Reporting.TypeReportSource
 
@using Telerik.Reporting
@using Telerik.ReportViewer.Mvc
 
@section style {
    @Styles.Render("~/Content/css/KendoReporting")
 
    <style>
        #reportViewer1 {
            position: relative;
            margin-left:auto;
            margin-right:auto;
            width: 900px;
            height: 900px;
            font-family: Verdana, Arial;
        }
    </style>
}
 
 
@section scripts {
    @Scripts.Render("~/bundles/KendoReporting")
}
     
 
@(Html.TelerikReporting().ReportViewer()
        .Id("reportViewer1")
        .ServiceUrl(Url.Content("~/api/reports"))
        .ReportSource(Model)
        .ViewMode(ViewMode.Interactive)
        .ScaleMode(ScaleMode.Specific)
        .Scale(1.0)
        .PersistSession(false)
        .PrintMode(PrintMode.AutoSelect)
 
)

 

And finally the bundles used look like:

//Telerik Reporting Bundles
            bundles.Add(new ScriptBundle("~/bundles/KendoReporting").Include(               
                "~/Scripts/Local/ReportViewer/telerikReportViewer-11.0.17.222.min.js",
                "~/Scripts/Local/ReportViewer/telerikReportViewer.kendo-11.0.17.222.min.js"));
 
            bundles.Add(new StyleBundle("~/Content/css/KendoReporting").Include(
                "~/Content/kendo.common.min.css",
                "~/Content/kendo.blueopal.min.css"));

 

In the main view layout, the JS files are loaded FIRST in the head, then the CSS files.

 

Thank you!

Stef
Telerik team
 answered on 24 Feb 2017
2 answers
141 views
I'm getting a rather generic error message when I go to add a new blank report to my project. The same happens when I try to run the wizard. The error message is just "Object reference not set to an instance of an object". I'm using Visual Studio 2013 and Telerik reporting version 11.0.17.118. Any help would be appreciated
Stef
Telerik team
 answered on 24 Feb 2017
1 answer
123 views

Hello,

 

I have the following:

 

@(Html.TelerikReporting().ReportViewer()
.Id("reportViewer1")
.ServiceUrl(Url.Content("~/api/reports"))
.ReportSource(new TypeReportSource() { TypeName = Model.AssemblyQualifiedName })
.ViewMode(ViewMode.Interactive)
.ScaleMode(ScaleMode.Specific)
.Scale(1.0)
.PersistSession(false)
.PrintMode(PrintMode.AutoSelect)
)

 

All I want to do now is add a DateTimePicker in order to edit 2 date parameters in the report. I see that there is a DateTime parameter editor but the documentation is so incredibly lacking in this aspect I have no clue how to use it.

 

We are thinking of purchasing reporting (and maybe others) but the documentation so far has been sub-par.

 

Thank you.

Stef
Telerik team
 answered on 24 Feb 2017
3 answers
451 views

Hello,

I have a bar chart in my report and it is getting value from the telerik SQL, so the scenario is :

if i have data from telerik SQL =0.0002356 , then it is shown on bar, but

if i have data from telerik SQL=0.0000000, then it is showing nothing (and it should show 0 on the bar )

 

so, what i want on my report, if i get data less than 1 from my telerik SQL, then it should show 0 for that particular bar in the telerik report run time .(I have implemented this in SQL but there is no use of that in telerik report, because i think the report does not show value 0)

please help.

Katia
Telerik team
 answered on 23 Feb 2017
5 answers
445 views
Initially it worked and then for some unknown reason, the Data Source Type list failed to appear at all.

Would like to know if there's a workaround. Have tried a reinstall of Reporting and that does not change anything.

How can I add a datasource in code that will appear in the designer. Have tried hacking the designer code but that gets overwritten.
An example would be good otherwise it's going to prove difficult to use Reporting at all.

Screen shot attached.

Rute
Top achievements
Rank 1
 answered on 22 Feb 2017
9 answers
409 views
there are few carryover threads in forum nor knowledge base. and I'm really lost.

I need RUNNING page total
----------------------------- page1
1
2
3
page sum:6
----------------------------- page2
carryover:6
1
1
1
page sum:9                        -> sum of all previous pages and this page
-----------------------------page3
2
2
2
page sum:15                        -> sum of all previous pages and this page
grand total: 15                        -> sum of all pages

how can I achieve this ? invoice with multiple pages need previous running totals on top of each page. please, some how it must be done. I use latest telerik reporting version.

my sql is very simple: "select explanation, amount from invoices."

Katia
Telerik team
 answered on 22 Feb 2017
1 answer
104 views

Hello,
i want to print labels in report designer (stand alone).
My fields are all in the detail section. All works fine, but i have one problem.
If the value of one field, for example is three, i need this label three times.
All others just one time.
How can i handel this?
Kindly regards
Ralf

Katia
Telerik team
 answered on 22 Feb 2017
3 answers
396 views
Hello my name is Renè,
I need some help the menu of the HTML5 Reportviewer I need in German.
Have an ASP web application with C # code!
Has anyone a tip how to change the title or texts?
Greetings Renè
Stef
Telerik team
 answered on 22 Feb 2017
1 answer
203 views

Hello.

I have a simple 4 series line graph that is not formatting the lines correctly for 2 of the series.

The UCL and LCL lines are working just fine, but the 'Sum" lines are not.

The markers are correct for the data points though. 

Thanks

Jeff

Katia
Telerik team
 answered on 21 Feb 2017
3 answers
1.0K+ views

Do you have an example of how we should be setting our connection string in an asp.net core app. The docs talk about setting an app.config file in the base directory.

Is this supposed to be in the wwwroot folder and if so what format does it need to take?

Normally in these applications we are putting connection strings in an appsettings.json file and the framework has methods to access these.

Is there something that we can override so that the connection string will be read from here?

I have already checked this http://www.telerik.com/support/kb/reporting/details/changing-the-connection-string-dynamically-according-to-runtime-data

but it seems unwieldy because it looks like you have to actually manually update the report source for the report you are rendering...

I would much prefer that I just pull it from my connectionstrings section in appsettings.config like I do in my Startup.cs like so

Configuration.GetConnectionString("DefaultConnection")

and I believe that Configuration can be passed in via DI using IConfigurationRoot?

 

Thanks
AJ

Stef
Telerik team
 answered on 21 Feb 2017
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?