Telerik Forums
Reporting Forum
3 answers
1.1K+ views
I am running a report off a query that is using a LEFT OUTER JOIN to ensure that dates are included even if there is no data for the dates. (See the bottom of this post for the query).


I am displaying the data in a crosstab report, using the dates as columns. The ideal is that if there is no data for the date then each value in the column displays blank.

This is working. The problem is, if the crosstab has one or more blank columns, then a blank row with no header appears as well..

The attached image shows two crosstabs. The range "11 August to 17 August" has no empty dates, so subsequently there are no empty rows.
But the range "18 August to 21 August" happens to have empty dates. The columns are correctly empty, but there is one group row that has no header.

 I can understand why this is so, but how can I make the blank row go away? My guess is that there's some filtering condition along the lines of "if VideoGroupName IS NOT NULL", but I can't seem to find a way to filter away nullness.




select
    date_range_all.Date,
    values_in_range.VideoGroupName,
    values_in_range.VideoGroupKey,
    values_in_range.NumberOfPlayers,
    values_in_range.AveragePlaysPerHour
from
(
   select date_dimension.date
       from Date_Dimension
           where date_dimension.WeekStartingThuSeqNo IN
          (
                  select distinct Date_Dimension.WeekStartingThuSeqNo
                  from Date_Dimension
                     where Date_Dimension.Date >= @startDate
                    and Date_Dimension.Date < @endDateExclusive
           )
) date_range_all
left outer join
(
   -- More query here
) values_in_range
on date_range_all.Date = values_in_range.Date

Neepa
Top achievements
Rank 1
 answered on 21 Aug 2013
5 answers
185 views
Hello All,

I wanted to create table that has 5 rows regardless of number of entries returned from database. For example if there are only two entries in the database, table should display those entries and also display three emptry rows.

I tried to add those rows manually, but it seems very hard and counter intuitive.

Your help would be greatly appreciated, thanks.

Kind regards,
Ben
Stef
Telerik team
 answered on 21 Aug 2013
27 answers
3.0K+ views
Hi,
     I have been evaluating Telerik reports for a few days now. I like what I have seen so far. I need to know one thing before I make a final decision. We have a requirement to merge different reports and export them in PDF format. The number of reports and type of reports vary depending on users search criteria.
    I know we can add sub report items programmatically. Is there a limit on the number of sub report items you can add programmaitcally. If so what is the limit. Also do you have any samples in C# that will show me how to add sub report items programmatically.
       I created a small sample that creates sub report items programmatically. In the report viewer it's showing okay. But when I export it to PDF format the sub report items are overlapping. 

Thanks
Bhaskar
Peter
Telerik team
 answered on 21 Aug 2013
4 answers
118 views
Please see the attached pie chart - I've 14 possible different series in this chart - but there are chances that some of the series can have "0" as their value.  On the graph I don't want to show 0.00%.  Can you please help me achieve this - I used the graph wizard to generate this graph.

Thanks,
Neepa
Top achievements
Rank 1
 answered on 20 Aug 2013
7 answers
424 views
How do i localize the text that is written in the bottom when pagination is done in the radgrid. For Example text which displays the page number "Page No. 1 2 3" or text of "Items"
The text in the given quotes need to be in local language selected by the user on the page.
Paul Herzberg
Top achievements
Rank 1
 answered on 20 Aug 2013
1 answer
102 views
I see according to your documentation that references to Telerik.Windows.Controls, Telerik.Windows.Controls.Input, Telerik.Windows.Controls.Navigation, and Telerik.Windows.Data are all needed to use the ReportViewer within an WPF app.

Does that mean that I have to purchase a license for the RadControls in order to develop and ship my app using your Reporting app, or can I use the Trial versions of the RadControls to develop and ship my app?

According to this thread it looks as if I could just use the Trial versions, but that was from 2012 so I'm unclear as to how to proceed.

Thanks in advance.
Peter
Telerik team
 answered on 19 Aug 2013
3 answers
208 views
Is there a way to hide the x-axis line but still show the x-axis labels in the Telerik.Reporting.Chart?

For instance, we have situations where we have to do custom code to reverse the Y-axis to make certain information make sense. Our x-axis is at the top instead of the bottom (yaxis of 0 in the screen shot attached) so we get an odd occurrences where it throws off the set steps (y-axis steps are set to 5 but the intervals are in 4) and the x-axis is drawn on top of the series (shown in screen shot).
I found the option to hide the xaxis but as expected it also hides all of the ticks and labels along with the xaxis line which is not an acceptable solution. In the screenshot attached both major/minorGridLines for the Yaxis are currently off. The only line being shown is the X-Axis.
Stef
Telerik team
 answered on 19 Aug 2013
1 answer
441 views
Hello everyone,
I have a question regarding named connection strings.  I'm sure this question or something similar has been asked, but I'm not finding a clear answer or a best approach documented. There is so much posted out there...it's a lot to wade through.  For the record, I'm using Telerik Report Q2 2013.

Here's my situation.  I'm creating reports for web projects in separate solutions.  Inside a web.config file for a particular web project, I have a connection string named say "MyDBContext".

In my report solution where I create my reports for this particular project.  Let's call it MyReports.  I use the report wizard, I "Add New Data Source", choose "SQL Data Source", give it name or accept the default one, specify the connection string (using SqlClient Data Provider), and I do "Save this connection string with a name that I hope to be used when this report is executed in my web project.  In this example  "MyDBContext" to match the named connection in my web project. 

What I see is that the SqlDataSource in that report actually has the full data source specified in the ConnectionString property rather than just a reference to the connection string that was added to my app.config file.  I can change the connection string to reference the named connection string; however, instead of it being just "MyDBContext", which would work in my WebProject, it is called "MyReports.Properties.Settings.MyDBContext", which of course, will not match the connection string in my web project and so I won't be able to make a successful connection when using the report DLL there as is.   What I am doing is renaming the named connection in my app.config from "MyReports.Properties.Settings.MyDBContext" to just "MyDBContext" and then changing the ConnectionString property in my report's datasource to be just "MyDBContext"

Is this the right approach ?  We are new to using the Telerik reporting product and I would like to start out with best practices.  Unfortunately, there is so much information out there, it's difficult to determine what those best practices are.

Any thoughts or suggestion would be greatly appreciated.

Thank you -- Jeff Gaiche
Peter
Telerik team
 answered on 19 Aug 2013
1 answer
377 views


How to I specify the scope as the report?


I am binding a datasource to the report programmatically.
I am not using a table to display the detail data, only textboxes which display field values using "[=Fields.FieldName]".

Thanks.


I want to get this, i use TextBoxs in my detail.

  A                  X                 Y                   Z  (X-Y accumulative)
  a                10                 2                   8
  b       6                 3                  11
  c                  0                 5                   6
Squall
Top achievements
Rank 1
 answered on 19 Aug 2013
2 answers
164 views
Hello All,

I have a report which works fine and it is set to my report viewer.  I have the SQL select statement hard coded.  I have a dropdown box on the same page and I want to append that user name to the select statement.  I am a bit confounded on how to change the select statement.  Here is the code and I want to dynamically hand in the user id (which is 4 in my hard coded case).  I know how to get the selected item out of the dropdown...it just isn't clear how I get the web page to hand it into the report.  Any thoughts? 
Thank you.
William

public ReportClass()

{

StringBuilder sb = new StringBuilder();

InitializeComponent();

 

sb.Append("select SY.name_system, SE.id_employee, SE.id_system, SE.id_user, SE.date_change").Append(" ");

sb.Append("from Secured SE").Append(" ");

sb.Append("inner join Systems SY on SY.id_system=SE.id_system").Append(" ");

sb.Append("where SE.is_active=1 and SE.id_employee=").Append("4").Append(" ");

sb.Append("Order by SE.date_change DESC");

sqlSource.SelectCommand = sb.ToString();

txtRunDate.Value = DateTime.Today.ToShortDateString();

}



William
Top achievements
Rank 1
 answered on 17 Aug 2013
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?