Hi,
I have a ReportViewer control:
<
tr:ReportViewer
ReportSource
=
"{Binding MyReportSource}"
/>
A report:
public
partial
class
MyReport : Telerik.Reporting.Report
{
public
MyReport()
{
InitializeComponent();
}
}
A view model:
public
class
ViewModel
{
public
ReportSource MyReportSource {
get
;
set
; } =
new
InstanceReportSource { ReportDocument =
new
MyReport() };
public
IList<MyReportModel> MyModels {
get
;
set
; }
}
The ReportViewer control displays the structure defined in MyReport.
I assume that the ReportSource binding is working properly.
But how do i bind MyModels as a data source for MyReportSource,
so that it actually renders some data?
Thanks in advance,
machine spirit
Web service data source is not working properly in release(R3-2019).
I'm using Web service data source with OData to show some information about sales invoices. I need to show not all of columns of a table, but some of the columns. That's why I'm using $select operator at the end of the odata query(See second attached picture). So, I'm not able to use $select or even $expand operators in new release(R3-2019), because it shows an error(404). $select, $expand were working before(R2-2019), but in new release it is not.
Can some one help me on this case?
I am updating an ASP.Net WebForms application which uses the now obsolete WebForms ReportViewer. I am converting this to use the HTML5 WebForms viewer instead. We use ReportBooks in our application to display a collection of reports as one. In your documentation article: "How to Display a ReportBook in Viewer", it states: "Created ReportBook can be passed to the report viewer's report source as TypeReportSource." But the viewer only takes: Telerik.ReportViewer.Html5.WebForms.ReportSource so how am I to pass the ReportBook to the viewer?
Thanks,
Lisa
public class MultiSheetReport_Group1 : Telerik.Reporting.ReportBook
{
public MultiSheetReport()
{
this.Reports.Add(new CoverPages.GroupOneCoverPage());
this.Reports.Add(new ItemizedPages.GroupOneItems());
}
}
public MultSheetReport(int parentId)
{
var monthTriplet = DateTimeHelper.GetMonthOrdinals(parentId);
// monthTriplet is a Tuple of int, int, int
var cvrPage = new CoverPages.GroupOneCoverPage();
cvrPage.ReportParameters.Clear();
cvrPage.ReportParameters.Add(new ReportParameter("id", ReportParameterType.Integer, parentId));
this.Reports.Add(new CoverPages.GroupOneCoverPage());
var m1ItemPage = new ItemizedPage.GroupOneItems();
m1ItemPage.ReportParameters.Clear();
m1ItemPage.ReportParameters.Add(new ReportParameter("id", ReportParameterType.Integer, parentId));
m1ItemPage.ReportParameters.Add(new ReportParameter("month", ReportParameterType.Integer, monthTriplet.Item1));
this.Reports.Add(m1ItemPage);
var m2ItemPage = new ItemizedPage.GroupOneItems();
m2ItemPage.ReportParameters.Clear();
m2ItemPage.ReportParameters.Add(new ReportParameter("id", ReportParameterType.Integer, parentId));
m2ItemPage.ReportParameters.Add(new ReportParameter("month", ReportParameterType.Integer, monthTriplet.Item2));
this.Reports.Add(m2ItemPage);
}
Hi,
Is there a way to dynamically set the chart height based on the number of data rows? The chart looks fine when there are about 10-12 rows of data, but anything more and it starts to squish to meet the height requirements of the chart. I'm assuming there is a way and I'm just missing it!
I'm using the standalone Telerik Report Designer FYI. I've attached photos for an example.
Hi, I have a report act as a header template as follows:
var template = new TemplateReport{ Header = "Some header"};
where updating the custom properties will also update the textbox value.
When I want to use the template, I will just create the template, and do the such things:
var template = new TemplateReport{ Header = "Some header"};
var content = new ContentReport();
template.Content = content;
How can I do such things with report book? Thanks!
We have a legacy web application leveraging "Telerik Reporting Q1 2015 SP1 (version 9.0.15.324)" and would like to bring it up to date with the current version "Progress® Telerik® Reporting R2 2019 SP1 (13.1.19.618)".
I have not been able to find anything to indicate what, if any, breaking changes were introduced in more recent versions or any other pitfalls we may face thus it is difficult to plan the effort or weigh the value.
Does anyone know if the newest version is backward compatible with version 9.0.15.324?
Thanks in advance,
Matt
Telerik Reporting Version History: https://www.telerik.com/support/whats-new/reporting/release-history
Telerik version SP1.11.1.17.614
function createSingleSelectEditor(placeholder, options) {
console.log(placeholder);
var dropDownElement = $(placeholder).html('<
div
></
div
>');
var 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",
value: parameter.value,
dataSource: parameter.availableValues,
change: onChange
});
dropDownList = $(dropDownElement).data("kendoDropDownList");
}
};
}
@(Html.TelerikReporting().ReportViewer()
.Id("VisorInformes")
.ServiceUrl(Url.Content("api/reports/"))
.TemplateUrl("/Resources/Templates/telerikReportViewerTemplate-FA.html")
.ReportSource(typeReportSource)
.ViewMode(ViewMode.Interactive)
.ScaleMode(ScaleMode.Specific)
.Scale(1.0)
.PersistSession(false)
.PrintMode(PrintMode.AutoSelect)
.ParameterEditors(p =>
p.SingleSelectEditor("createSingleSelectEditor"))
Hello,
Can I show a field from a table using a Telerik Reporting HTML TextBox?