Telerik Forums
Reporting Forum
1 answer
107 views
I have a NavigateToReportAction assigned to a TextBox in a GroupHeaderSection of my report. In the code I assign the DataSource of my ReportSouce to this.DataSource. This works locally but the SubReports is blank on the testing server.

I am running an out-of-proc session. I made changes for other DataSource assignments to account for this but, no matter what I try, I can't seem to bind the NavigateToReportAction DataSource.

Here's what I have right now:

public ParentReport()
{
    InitializeComponent();
    ItemDataBinding += ReportDataBinding;
}
 
public void ReportDataBinding(object sender, EventArgs e)
{
    var processingReport = (Telerik.Reporting.Processing.Report)sender;
    var report = (Telerik.Reporting.Report)processingReport.ItemDefinition;
    GroupHeaderArea2 = (Telerik.Reporting.GroupHeaderSection)report.Items.Find("GroupHeaderArea2", true)[0];
    GroupHeaderArea2.ItemDataBinding += AssignSubReportDataSource;
}
 
public void AssignSubReportDataSource(object sender, EventArgs e)
{
    Telerik.Reporting.Processing.GroupSection groupSection = (Telerik.Reporting.Processing.GroupSection)sender;
    Telerik.Reporting.Processing.TextBox txtName = (Telerik.Reporting.Processing.TextBox)groupSection.ChildElements.Find("txtName", true)[0];
    NavigateToReportAction action = (NavigateToReportAction)((Telerik.Reporting.TextBox)txtName.ItemDefinition).Action;
    InstanceReportSource subReportSource = (InstanceReportSource)action.ReportSource;
    ((Telerik.Reporting.Report)subreportSource.ReportDocument).NeedDataSource += subReport_NeedDataSource;
}
 
protected void subReport_NeedDataSource(object sender, EventArgs e)
{
    ((Telerik.Reporting.Processing.Report)sender).DataSource = this.DataSource;
}

I have tried to use a Binding in my SubReport to assign the DataSource as suggested in:
http://www.telerik.com/forums/how-to-bind-the-datasource-of-a-subreport-in-the-designer.

If anyone has any tips on how to do that properly that would be helpful. Any insight is appreciated as I have been working on this issue for a while. Again, this is working locally, but not on the server.

Thanks!
Hinata
Top achievements
Rank 1
 answered on 20 Jan 2015
4 answers
625 views
Following the documentation here:
http://www.telerik.com/help/reporting/designing-reports-parameters-using-multivalue-parameter.html

It says, "In order to have multiple values selected, you should set the Value property of the parameter to an IEnumerable instance containing the desired values. This can be done using the code behind or an expression."

My question is:  How do you specify one or more default values using an "expression"?


Thanks - Wayde
KS
Top achievements
Rank 1
 answered on 20 Jan 2015
5 answers
367 views
Is there a way to remove the <select all> option in a multi-value report parameter?
Stef
Telerik team
 answered on 20 Jan 2015
1 answer
84 views
Hi
Is there any way to add many documents (each one may be from a different report) into a Report Viewer?

Best regards
Tasos Sarris
Nasko
Telerik team
 answered on 19 Jan 2015
3 answers
242 views
I have a simple Master/Detail type report that I'm trying to develop, however I'm running into a binding issues with relating the Detail to the Master. The only "advanced" part of this is that I am setting the datasource dynamically for the subreport and then creating a new InstanceReportSource. Could that possibly have something to do with it? Below is various screenshots of how I have everything setup and the results I'm getting. 

1) A simple texbox on the report to display the value of the field I'm pulling from the datasource (This works)
2) The Sub Report
3) The Parameters of the ReportSource for the subreport. There is a single StudentId parameter. This is set to the same field that is being displayed (Item 1)
4) The Report Parameters of the SubReport
5) The output of the SubReport when it is run. The Date column is setup to use the StudentId parameter (Item 4)
6) The code that is being used to set the DataSource for the SubReport

Any ideas or suggestions would be Greatly appreciated! Thanks in advance!

Robert Bross
Top achievements
Rank 1
 answered on 19 Jan 2015
2 answers
94 views
Hi,support team,

I'd  like to know how to achieve hierarchy in standalone report designer as below:

Employee1
  Employee1.1
      Employee1.1.2
        Employee1.1.2.1
     Employee1.1.3
Employee2
  Employee2.1

I saw a thread in this forum,but it's in Visual Studio. But we don't need any code.

Is it possible in standalone report designer?

Thanks a lot.

Hinata
Top achievements
Rank 1
 answered on 19 Jan 2015
2 answers
73 views
I like how with Kendo UI for MVC you have the option of placing the references dlls into lib/kendouimvc, so projects are not dependent on having the correct version installed (or having the telerik control panel installed on a build server), and when updates occur it will copy over everything and make sure you don't miss something. 

It would be nice to have an option in the upgrade wizard extension thingy to have a section for including telerik reporting and it will put the necessary dlls in your project the same way.

I can easily manually copy the files over, so this is just a pet peave thing, but it would be nice...
Hinata
Top achievements
Rank 1
 answered on 19 Jan 2015
16 answers
975 views
Hi Team, 

Issue : When I am trying to export to excel its getting request timeout error. 

Description :
Report viewer has 240 pages and it was loaded successfully and I can able to export PDF also. Only I am getting error when I am trying to export to Excel
and when I am trying to debug through source code its working fine. Only I am facing this issue in Production (Live).
we are using graph and table format as well. Please advise me to resolve this issue.


-
V S
Hinata
Top achievements
Rank 1
 answered on 16 Jan 2015
1 answer
519 views
Hey,

for our project we use some data to generate general reports about events happening. For this we have a master report containing header and footer and specific reports for various data. We are using a table to display our data and when trying to fill the table it tries to fit as many entries on one page as possible and this, however, leads the first page being almost empty with only the header and the title on it. The data that exists is displayed on the next page. Setting the property "KeepTogether" to false of the table lead to no results. It seems like the table checks if there is enough space to fit in all data available on a single page doesn't matter whether it's the first page or not and if so it adds it there. (See screenshots)

So my question is if there is a way to tell the table to insert the data without checking if it can be made fit on one page? 

Thanks in advance,
Alen
Peter
Telerik team
 answered on 16 Jan 2015
11 answers
389 views
Is it possible to capture a click event in a cell of a report Telerik?
Peter
Telerik team
 answered on 16 Jan 2015
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?