Hi all. I have a problem and don't know how to fix. I add a reportviewer control to aspx and try to set the ReportSource from code behind. The report is rendering on page, but unfortunately there is no content. When debugging i see that the ReportSource of report viewer is the same, which i bind, but no table shows on screen. I'm creating the Report object programmatically. If load report, created from standalone Report Designer there is no problem.
This is the custom object I've tried to bind:
"[DataObject]
public class ReportSource
{
[DataObjectMethod(DataObjectMethodType.Select)]
public IList<Source> GetData()
{
var result = new List<Source>();
var data = ActiveTradesCache.GetActiveTradeData();
foreach (var item in data)
{
result.Add(new Source() { Rate = item.OrderRate });
}
return result;
//trgOpendDeals.DataSource = new Object[0];
//trgOpendDeals.MasterTableView.VirtualItemCount = 0;
//trgOpendDeals.DataBind();
}
}
public class Source
{
public double Rate { get; set; }
}
"
And the fill source method, which is in Page_Load event:
"
Telerik.Reporting.ObjectDataSource objectDataSource = new Telerik.Reporting.ObjectDataSource();
objectDataSource.DataSource = typeof(ReportSource);
objectDataSource.DataMember = "GetData";
Telerik.Reporting.Report report = new Telerik.Reporting.Report();
report.DataSource = objectDataSource;
Telerik.Reporting.InstanceReportSource reportSource = new Telerik.Reporting.InstanceReportSource();
rvOpenDeals.ReportSource = reportSource;
// Calling the RefreshReport method in case this is a WinForms application.
rvOpenDeals.RefreshReport();
reportSource.ReportDocument = report;
"
Best regards,
Lachezar
I have a problem with the newest telerik Reporting component. I have successfully designed a report and embedded every thing in an application. The source of the report is a SqlDataSource which has access to an SAP Sybase SQL Anywhere 12 database. Every thing works fine with the following statement:
select
*
from
document
A problem occures if i add some parameter to the statement:
select
*
from
document
where
id = ?
If i add this i don't get any error message nore the report works correctly. I only get a blank page. In the designer and in the viewer. I tried some different parameter passing methods but nothing works. What is the problem here? I also could not find anyhing in the documentation for SAP Sybase SQL Anywhere 12. Is this not supported? (It should because it is simple ADO.Net). I've tried a lot with the parameter system but still wount work. Thank you very much!
P.S. i add the parameter like this to the report:
SqlDataSource ds = (report.DataSource
as
SqlDataSource);
ds.Parameters.Add(
new
SqlDataSourceParameter(
"Id"
, DbType.Guid, ... some guid ...));
Hi,
I'm evaluation the Telerik Reporting to buy some licence in my company but the first problem I found, the documentation is basic, so I can't found how to can do pagination with SQL Server data source, the report has around 30,000 rows so when it try to render in the browser crashing.
I'm using HTML5 Viewer and WebAPI to render the reports,
I'm thinking in page from store procedure but I not found information how to configure the pagination control to return the number of records or to identify the page number
Somebody can help me to resolve it?
I have a WPF app and am using the latest 2015 packages. I have a report where the datasource is an IEnumerable of business objects which I set in the code behind.
this.DataSource = ListOfItems;
I have a single group where the header displays one field of my object. The details section contains a table that should show the rest of the object properties. The groups work fine this way, but the table does not. The table shows several empty rows. And also, the column headers are repeated for each row. I found a previous post http://www.telerik.com/forums/table-in-detail-section-of-group and set the binding for the table datasource as instructed. This fills out the rows in the table, but the column headers are still duplicated for every single row.
Please advise.
Recently we tried to upgrade our Telerik-Reporting Module
with all our reports from version „6.2.12.1017“ to „9.1.15.731“.
We have a client-server architecture, where our client
creates on request a „ReportServiceClient“
which calls the report-creation-functions of our server side telerik service
which is derived from „ReportServiceBase“. That means
that all report creation logic is covered by telerik classes.
Now the problem:
Our client creates a Dictionary<string, object> which is sent to the server. In the version
6.2.12.1017 the server was able to „combine“ the client dictionary with the
ReportParameterCollection of the Report if the strings of the ReportParameter
and the key inside the client-collection were the same.
This mechanism, which is completely covered by
Telerik-classes, is not working anymore in version 9.1.15.731 like before.
Do you have any ideas why that is?
Example client dictionary sent to the server:
var parameters = new Dictionary<string, object>();
parameters.Add("p_param1 ", 42);
parameters.Add("p_param2", "English");