Hi, there is some way to put the number of pages in a textbox (like the =PageCount) outside the page Header or Footer, even programmatically using C#, I tried by generate a temporary file of the report, counting the page numbers send that value and generate the report again but that solution is not very practice.
Can Some one help me please.
I am trying to figure out how to bind the ObjectDataSource in Xaml. I am using the MVVM pattern and do not want to use code behind. I cannot seam to find any documentation or examples that show this. Everything I have found shows this being done in code behind. I think it really is just a matter of getting the proper syntax. If anyone has done this could you show me how this is done.
Thank You
Sorry for my limited English first, I have a problem with formatting text of htmltextbox:
Is there any way to display a content like:
- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Instead of:
- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
And is there anyway to remove padding of <ul> and <li>?
Hello,
From my understanding I can pass a function into the ready option and it will run after the report viewer is initialized, so great - I though, because I would like for my reports to ignore the cache on a specific report. So I figured I could do something to the effect of:
$("#reportViewer1")
.telerik_ReportViewer({
serviceUrl: "/REST/api/reports/",
templateUrl: '@Url.Content("~/ReportViewer/templates/telerikReportViewerTemplate-9.0.15.225.html")',
reportSource: {
report: "TravelRequestHeader.trdx",
parameters: {
TravelRequestID: '@ViewBag.TravelRequestID'
}
},
viewMode: telerikReportViewer.ViewModes.INTERACTIVE,
ready: function () {
//doesn't work right...
this.refreshReport(true);
}
});
However the report viewer keeps rendering the report from cache, but if I do this explicitly within my dev console:
$('#reportViewer1').data('telerik_ReportViewer').refreshReport(true);
Then it will refresh the report and ignore the cache as I intended. I do not see another option to set when initializing the viewer to tell to ignore the cache, am I missing something here?
Thanks,
Mike
I am evaluating the reporting functionality and I really need some help on binding a custom dll.
This is what I have done so far.
1) Created a .net dll with the following code. The dll is in the same folder as the trdx file
namespace ClassLibrary1
{
[System.ComponentModel.DataObject()]
public class Person
{
public string Name { get; set; }
}
}
I added the data source to the trdx file as follows
<DataSources>
<ObjectDataSource Name="ClassLibrary1" />
</DataSources>
When I open the project in the Data Explorer I only ClassLibrary1. I expected to see the object Person and under that the Name property. I opened the Configure Object Data Source window but both tabs are blank.
I have spent hours reading the forum and the pdf tutorial and just cannot figure this out. I must be missing some simple point on this. Any help would be appreciated.
Better yet does anyone has a simple example they would like to share?
BTW:
I also tried making a dll with a DataSet with some tables using the designer in visual studio but no luck with this either.
Hi
I am using Q2 2014 SP1 of Telerik Reporting. My report currently contains a single Graph in the detail section. It has a barSeries and two lineSeries.
However, there are times when I only want to show one of the two line series.
I'm binding the graph to a strongly typed list of objects and the object has a property on it that will let me determine if I want to hide the line series.
My specific example is this:
I am already binding my report's DataSource property to ReportItem.DataObject.BowlerValues (this is my strongly typed list).
My graph might need to show Planned (bar), Forecast (line) and Actual (line) values.
A BowlerValue object has a property on it called "ShowForecast".
If ShowForecast is false, I will want to hide the Forecast Line Series.
How can I do this? Can I use Bindings in any way?
Thanks,
Brent
Hello,
this is my scenario: WPF application with ReportViewer. My report uses a objectDataSource and displays a table with data. The DataMember (method which loads the data) expects 3 parameters: dateFrom, dateTo and a list of strings). I would like to select these parameters with custom input controls and pass them to the report. I don't want to use the built-in parameter selector because it doesn't fulfill my requirements.
So it is possible to pass parameters to the report? If I follow the documentation the DataObjectSource is created multiple times (and the data is loaded multiple times) which I don't understand because I only have one ObjectDataSource in my report!
Any help would be appreciated!
Does the new viewer support reports in a class library? I thought this may work, however I am receiving this error:
Type 'Telerik.ReportViewer.Html5.WebForms.ReportSource' in Assembly 'Telerik.ReportViewer.Html5.WebForms, Version=9.1.15.624, Culture=neutral, PublicKeyToken=a9d7983dfcc261be' is not marked as serializable.
This is the code I am using to display the report.
Protected Sub CmdReport1Click(sender As Object, e As System.EventArgs) Handles cmdReport.Click If Page.IsValid Then Dim typeReportSource As New Telerik.ReportViewer.Html5.WebForms.ReportSource Dim val As New Telerik.ReportViewer.Html5.WebForms.Parameter val.Name = "MYMONTH" val.Value = txtRep1Parameter1.Text typeReportSource.IdentifierType = Telerik.ReportViewer.Html5.WebForms.IdentifierType.TypeReportSource typeReportSource.Identifier = "IntranetReports.Admin.OfficeManager.CeBooking, IntranetReports" typeReportSource.Parameters.Add(val) ReportViewer1.ReportSource = typeReportSource End IfEnd SubThank you
Scott