When I try to alternate row color on a table on a report I use the Conditional Formatting =RowNumber()%2
When the report runs I get the error “Aggregate node ‘LeafNumber(Const(RowNumber))’ not found.
I'm always getting an "invalid format" exception when using the following header in a web service data source as parameter:
Authorization="Bearer testeXAMpleKV1QILCJhbPlkIiJIUzI2NiIsImdpZCI6Im.893PSJ9eyJpc3MioiJzc4p3dCIsIkN1YiI6ImNiYjhkOWQ1LTMxYjYtNDJiNS3hYjZmLWI0NDliYThlNmNwNyIsImlhdCI6MTa3MTY4MjUwOSviZ1hwI56xNTcxNjkzMz25LcJuYW1lIjoiYvRtaW3iLCkwcmVmZXJyZWRfdXNlcm5hbWUiOiJhZG1pkiIsInJvbGVzIjpbIkRhdGFSZWFkZXIiLCqBtG1ebmlzdEJhdG9yIiwiRGF0YVdyaXRlciIsIlrhc2tSZWFkZXIiLCJUYXNrV3JsdGVyIiwiUmVwb3J0UmVhZGVyIiwzUmVwb3J0V3JpdGVyIikiVXNlolJlYWRlciIsIlVzZpJXcnl0zXIiXSwiTGFuZ3VhZ2UiOhJmcl9DSCi9XfywW.w8OpuvK7H9lr0hnEJMVe9UKy27GDjyLpOuInPc"
The actual error message: The format of value '="Bearer testeXAMpleKV1QILCJh.....pOuInPc"' is invalid.
Any suggestions?
Hi,
I need to be able to change the datasource for the reporting at runtime.
Currently I am using MySQL not SQL so the method shown does not work
Directcast(report.datasource, Telerik.Reporting.SqlDataSource).connectionstring = "ConnectionString"
All my reports work fine with the MySQL connectors, just need to change the datasource as i'm working with multiple databases.
I've had users tell me that the parameters area of the report viewer is no longer clickable on devices running the latest version of Android. This is one description:
"I can open the filter and see everything but clicking is unresponsive.
It's weird though, it will outline the element so it knows that something is being clicked there but it just doesn't select or deselect the element."
Has anyone else run into this issue? Is there a work-around or fix?
I followed the intructions to add reporting to a new asp.net core website from here: https://docs.telerik.com/reporting/html5-report-viewer-asp-net-core-2
I am using version 12.0.18.125 so I updated my html page to the html below.
When I launch the html page I get a popup saying: "Kendo is not loaded. Make sure that Kendo is included.
If I click ok i see an empty report.
How should I configure kendo? Where is it loading from?
I don't have a script like this: <script src="telerikReportViewer.kendo-11.2.17.913.min.js"></script>
Html:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<script src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script>
<link href="http://cdn.kendostatic.com/2013.2.918/styles/kendo.common.min.css" rel="stylesheet" />
<link href="http://cdn.kendostatic.com/2013.2.918/styles/kendo.blueopal.min.css" rel="stylesheet" />
<script src="telerikReportViewer.kendo-11.2.17.913.min.js"></script>
<script src="/api/reports/resources/js/telerikReportViewer-12.0.18.125.min.js"></script>
<style>
#reportViewer1 {
position: absolute;
left: 5px;
right: 5px;
top: 50px;
bottom: 5px;
overflow: hidden;
font-family: Verdana, Arial;
}
</style>
</head>
<body>
<div id="reportViewer1">
loading...
</div>
<script>
$(document).ready(function () {
$("#reportViewer1")
.telerik_ReportViewer({
serviceUrl: "api/reports/",
reportSource: {
//report: "Telerik.Reporting.Examples.CSharp.ReportCatalog, CSharp.ReportLibrary",
report: "Barcodes Report.trdp",
parameters: {}
},
viewMode: telerikReportViewer.ViewModes.INTERACTIVE,
scaleMode: telerikReportViewer.ScaleModes.SPECIFIC,
scale: 1.0,
});
});
</script>
</body>
</html>
I am following this guide -> https://docs.telerik.com/reporting/mvc-report-viewer-extension-embedding
Hi, I am new in telerik reporting and I am getting some errors.
Here is the Scenario:
I created an empty ASP .NET MVC Application and I am trying to output the reportViewer I created. This is what I selected
I chose the sample report definition.
After that it generated 3 files. A ReportsController, a trdp file and a cshtml file
1. I created a HomeController, and renamed the Action "Index" to "Reports".
2. I Renamed the cshtml file to "Reports.cshtml" and putted it under the Views/Home Folder.
3. Then I created a folder under the Controllers folder called "api" so it now looks like this Controllers/api and moved the ReportsController to that "api" folder
4. I also changed the default route action from "index" -> "reports"
Problem: Whenever I run my program, nothing shows at all. Its just an empty page. What am I doing wrong?
Note: I also posted this question here -> https://stackoverflow.com/questions/58600533/telerik-reporting-using-asp-net-mvc
Hi Admin,
Is it possible to pass the object datasource outside a report and then inside the constructor of the report there is a parameters for that datasource which will be used by the report? Is that possible using Type Resource Report? I am using asp .net MVC
also is it possible to pass an object or data table inside the TypeReportSource parameter?
something like this
public ActionResult Index()
{
var organisation = _organisationLogic.GetOrganisation();
var typeReportSource = new TypeReportSource()
{
TypeName = typeof(OrganisationReportSample).AssemblyQualifiedName
};
var sample = new Sample();
var samples = new DataTable();
samples = sample.GetReportData();
typeReportSource.Parameters.Add(new Parameter("samples", samples));
return View(typeReportSource);
}
I am passing a data table inside the Report constructor and will use it like this..
public OrganisationReportSample(DataTable samples)
{
//
// Required for telerik Reporting designer support
//
InitializeComponent();
//
// TODO: Add any constructor code after InitializeComponent call
//
this.DataSource = samples;
}
is this possible or not?
Here is my controller which I am using a instance report
public ActionResult Index()
{
//===============================================================================
var objDts = new ObjectDataSource();
objDts.DataSource = new Sample();
objDts.DataMember = "GetSample";
var orgSampleReport = new OrganisationSample();
orgSampleReport.DataSource = objDts;
var reportSource = new Telerik.Reporting.InstanceReportSource();
reportSource.ReportDocument = orgSampleReport;
return View(reportSource);
//===============================================================================
}
and here is the logic that I am puling from
[DataObject]
public class Sample
{
public int Id { get; set; }
public string Name { get; set; }
public Sample GetSample()
{
var sample = new Sample
{
Id = 1,
Name = "Sample 1"
};
return sample;
}
}
whenever I run the program and go to the report viewers it shows "No Report"