Need help. Textbox action (Navigate to Report (object instance)) does not work. Textbox is not clickable on html5 report viewer. It is working on web form report viewer (Same logic on creating the report.).
I'm using a custom report resolver where datasource is from a dataset and the report is from a xml file.
code snippet:
private void AssignSubreportDatasource(global::Telerik.Reporting.Report parent, DataSet ds)
{
var items = parent.Items.Find("textBox14", true); // contains NavigateToReportAction
if (items != null)
{
foreach (var item in items)
{
var sub1 = (((item as global::Telerik.Reporting.TextBox).Action
as global::Telerik.Reporting.NavigateToReportAction).ReportSource
as global::Telerik.Reporting.InstanceReportSource).ReportDocument
as global::Telerik.Reporting.Report;
var objds = sub1.DataSource as global::Telerik.Reporting.ObjectDataSource;
objds.DataSource = ds.Tables[0];
}
}
}
///////
public global::Telerik.Reporting.ReportSource Resolve(string reportId)
{
global::Telerik.Reporting.InstanceReportSource reportSource = new global::Telerik.Reporting.InstanceReportSource();
System.Data.DataSet ds = DeserializeDataset(datafile);
var report = (global::Telerik.Reporting.Report)xmlSerializer.Deserialize(xmlReader);
AssignSubreportDatasource(report, ds); //assigns navigate to subreport datasource
AssignDataSource(report, ds); //assigns inline subreport datasourcereport.DataSource = ds;
report.DataSource = ds;
reportSource.ReportDocument = report;
foreach (var telerikParam in reportSource.ReportDocument.ReportParameters)
{
telerikParam.Value = "0";
}
return reportSource;
}