I can export reports in IE just fine, but when I try to export in Chrome or Fire Fox I get an error. I have found that I only get the error with reports that use a SqlDataSource because when I created a test report that did not get external data it exported ok; but when I added the SqlDataSource and had it pull from SQL Server then it would no longer export. It always displays just fine though... it just won't export unless I (or my clients) use IE.
I've also posted this on Stack Overflow: http://stackoverflow.com/questions/31250011/telerik-reporting-cant-export-in-chrome-when-using-sqldatasource.
It has 14 votes so apparently someone else is having this problem... but no answers :(
I have a Chart on a ASP.NET Web Forms report. The customer wants to see datetimes displayed in local time with no offset. However, we need the offset to prevent weird chart behaviors during Daylight Savings Time.
One solution would be to have the Value be a UTC DateTime field and the Text be a local DateTime field. Can I do this with Telerik charts? I do not see a way to set the Value and Text of each data point in the LineSeries.
I am trying to show a report in HTML5. I have setup the Web API and I am able to successfully call the API with the xxx/formats and xxx/clients URL. However the next calls, which are clients/{clientid}/parameters and clients/{clientid}/instances are failing with a 404 and no additional information in Fiddler (see attached).
I included the Web API into my existing Web API, so the format of the URL is different than what is documented in the tutorials, but that shouldn't matter.
I have also seen that the 404 may indicate that the report file cannot be found. I have the following setup:
In the controller, I have this statement
Dim
resolver =
New
ReportFileResolver(HttpContext.Current.Server.MapPath(
"~/Reports"
)).AddFallbackResolver(
New
ReportTypeResolver())
and I have in the project location a Reports sub folder which contains the file Report1.trdx
In the Web Application, I build the html that has to be added to the page as following. The most noticeable is the ReportSource which is set to Report1 (I have also tried Report1.trdx with the same result)
Can you help me to set this up?
"<div id=\"reportViewer1\" class=\"k-widget\"> "
+
" loading... "
+
"</div> "
+
"<script type=\"text/javascript\"> "
+
" $(\"#reportViewer1\") "
+
" .telerik_ReportViewer({ "
+
" serviceUrl: \"/api/"
+
"token/"
+ Credentials.getToken(
this
.mainViewModel.connection) +
"/"
+
this
.mainViewModel.connection +
"/"
+
"TelerikReports/\", "
+
" templateUrl: '/ReportViewer/templates/telerikReportViewerTemplate-9.1.15.731.html', "
+
" reportSource: { "
+
" report: \"Report1\" "
+
" } "
+
" }); "
+
"</script> "
;
public
static
string
GroupDisplay(
int
GroupNumber, Telerik.Reporting.ReportParameterCollection parameters,
decimal
? RecordCenterKey,
decimal
? RecordUserKey, DateTime? BillDT_DateTime,
decimal
BillDT) {
switch
(GetGroupingForGroupNumber(GroupNumber)) {
case
ReportGrouping.None:
return
string
.Empty;
case
ReportGrouping.Centers:
return
CenterName(GetCenterKeyFromParameters(parameters), RecordCenterKey, GetViewSubCentersFromParameters(parameters));
case
ReportGrouping.Users:
return
CreateUserName(RecordUserKey);
case
ReportGrouping.Date:
return
CheckDate(GroupDate(BillDT_DateTime, BillDT));
default
:
return
string
.Empty;
}
}
Telerik.Reporting.ReportParameterCollection
instead of using every parameter separately is because there are 7 default parameters and many optional depending on the report, I want to use the same expression in all 40 so if something changes I can change the expressions in code for all of them in no time.I have escaped the ampersand but still get this error
the unit.Description is "something something & something something"
I then run the following code;
var unit = HttpUtility.HtmlEncode(unit.Description);
which returns "something something & something something"
this is bound to a field in a HtmlTextBox
Provider: {=Fields.Description.ToUpper()} ({=Fields.Identifier})
which causes (see the attachment)
when I manually remove the ampersand the report renders just fine
I have read other threads on this suggesting to escape it but this is not working. Any ideas?
Telerik Version : Q2 2013 7.1.13.705