Telerik Forums
Reporting Forum
6 answers
387 views
I was hoping to bind the presence or not of a grouping in my report to a dropdownlist/parameter of enabled/visibility??

Is this possible?
I have read the posts about looking at the Initializecomponent code, but am unsure of what to include from this??

perhaps if i wipe the grouping then have another look?

Is it possible to have this dropdown to select grouping within the report or would it be easier to implement external as an actionlink or some such??


Similarly I am unable to get multiple columns working in this report...I've read the documentation on ensuring there are no labels etc extending beyond column width

Anything else I should be looking at??
danparker276
Top achievements
Rank 2
 answered on 14 Aug 2011
1 answer
208 views
I show time values in Y Axis as second, but some times values can be big. For example 1000 second.
So this time not clear enough.
And than I want to show timespan values in Y axis with format like hh:mm:ss. How can I do this?   
I use Telerik Report Q2 2011

Thanks.
Peter
Telerik team
 answered on 12 Aug 2011
1 answer
96 views
Hi,

I am trying  to populate a bar chart Dynamically and have been successful so far. My only problem is that I'm not able to widen the lable's of the XAixs. 

I have tried the following code but without any success. (catList is the string array which contains the xaxis items, chart1 is the instance of the chart control )

            ChartAxisItem[] items = new ChartAxisItem[catList.Length];
            ChartAxisItem itm;
            chart1.PlotArea.XAxis.Appearance.TextAppearance.MaxLength = 100;
            for (int i = 0; i < catList.Length; i++)
            {
                itm = new ChartAxisItem(catList[i].Length > 20 ? catList[i].Substring(0, 20) : catList[i]);
                itm.Appearance.RotationAngle = 315f;
                itm.TextBlock.Appearance.MaxLength = 150;
                itm.TextBlock.Appearance.Dimensions.AutoSize = false;
                //itm.TextBlock.Appearance.Dimensions.Height = Telerik.Reporting.Charting.Styles.Unit.Pixel(25f);
                itm.TextBlock.Appearance.Dimensions.Width = Telerik.Reporting.Charting.Styles.Unit.Pixel(200f);
                chart1.PlotArea.XAxis.Items.Add(itm);
            }

I have also attached a screen print of the chart.


Thanks

Nishan

Steve
Telerik team
 answered on 12 Aug 2011
5 answers
153 views
I'm trying to recreate an old report in the Telerik Reporting environment.  I'm having trouble grasping exactly how to do this.  I think that I need to use a crosstab, but I'm unsure of how to set it up.  Here's what I need the report to print:


Page Header
-----------------
Job Code     Employee Name      Dept    
SUP               Dan P.                      10       
JAN                Karl S.                      10      

2 Employees in this Department.


(New Page)
Page Header
-----------------
Job Code     Employee Name      Dept    
SUP               John P.                      20        
JAN               Tony R.                      20        
JAN               Charles B.                  20        

3 Employees in this Department.



So I basically need to group by department.  I need to show the records for that department followed by a total count.  I want each group to display on a new page.  Does this make sense?  Is a crosstab the correct way to do this?
Steve
Telerik team
 answered on 12 Aug 2011
3 answers
2.5K+ views
Hello,
a simple question:
i have a sort of dashboard page where are shown  5 tables.
Each table has a datasource , each datasoure is the collection resulting by LINQ statements.

Let say one of this tables haas 2 columns. How i can get the sum of the values of a column and put the result at the fott of that column?

COL1    COL2
a            2
b            3
              5 =====> this is what i'am asking for 

thanks
Steve
Telerik team
 answered on 12 Aug 2011
2 answers
162 views
I'm using Telerik 5.0.11.510  and I'm unable to get Arial to appear bold on my font if the size is < 7.5pt.  Is there a fix I can get for this?
Shane
Top achievements
Rank 1
 answered on 12 Aug 2011
1 answer
174 views
Hi,

I have a report containing a subreport with figures that I want to subtotal on each page (for only the figure displayed on each individual page) and then I want a grand total for the subreport figures on the last page (all figures across all pages).

Currently I have the grand total working but unfotunately I cant find a way to do a subtotal per page. I basically need something like how the PageExec() works to allow me to sum up the data on that page, but obviously subreports dont have a page footer so this doesn't work. I have tried the Exec() but I can't set the scope to only the data on the page. Maybe if there was a way for passing the Exec() a scope with just the data on display on the page this would work but I guess the PageExec() was built to do this but without subreports in mind.

Please can anyone help me with this problem?

Thanking you in advance
Peter
Telerik team
 answered on 12 Aug 2011
1 answer
201 views
So far I have enjoyed the telerik rich suite of products.  My customer really likes the dashboard I created for them in silverlight using your chart tools.  Thanks for your great tools!

This issue has to do with reporting.

I just updated to 5.1.11.713 Q2  (from 2011 Q1 reports).  I had production reports working and they were pulling the connection string information from the Web.config of the reporting Service.  I also had them working in the designer.  I was happy about it.

According to this article here:
http://www.telerik.com/community/forums/reporting/telerik-reporting/passing-connection-string-to-sub-report.aspx  I shouldn't have been able to do that.  But I promise that I did.

Additionally in the article you consider it best practices to continue to use the settings file instead of the web.config file.  In the above example, I didn't use a settings file, but now the SQL Data source automatically generates it.  This causes a problem when you have multiple environments ie (development, test, production) and you have to recompile your code for each deployment.  For separation of powers, it isn't practical to have a developer change the settings file and republish it to each environment.
 

For some reason it appears that the upgrade broke this setup.  I didn't think it would be possible, but so far the solution evades me ... I need to be able to run my reports in the designer for testing them, and I need to be able to compile/publish once, and then just change the web.config for each environment I deploy to.

Could you please provide an example of how I can run my reports in VS2010 IDE designer, while still not depending on the settings settings file in deployment to various environments but depending on the web.config of the service.


Steve
Telerik team
 answered on 12 Aug 2011
1 answer
141 views

Hello:
Any help is appreciated with this error.

I do not get this error when I run the report on my local machine, but only when I deploy it to a different server (Win 2K8 R2).

I researched on the web and found that there is no support yet for MVC 3, but I was wondering whether anyone out there had the issue and found a solution.

Please let me know any specific information regarding the application that will help you answer.

Here is the code for my view:
==

 

<%

@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<BVReport>" %>

<%

@ Register Assembly="Telerik.ReportViewer.WebForms, Version=5.0.11.510, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"

Namespace="Telerik.ReportViewer.WebForms" TagPrefix="telerik" %>

<

script runat="server">

protected override void OnPreRender(EventArgs e)

{

rvReport.Report = ViewData.Model;

base.OnPreRender(e);

}

</

script>

<!

DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<

html>

<head runat="server">

<title>BVReport</title>

<style type="text/css">

html#html, body#body, form#form1, div#content, center#center

{

border: 0px solid black;

padding: 0px;

margin: 0px;

height: 100%;

}

</

style>

</head>

<body>

<form id="Form1" runat="server">

<telerik:ReportViewer Width="100%" Height="100%" ID="rvReport" runat="server" />

</form>

</body>

</html>

Steve
Telerik team
 answered on 11 Aug 2011
4 answers
139 views
We have a ReportViewerExtension that casts an instance of Telerik.ReportViewer.WebForms.HttpHandler as IHttpHandler.  This has worked for years, but no longer runs after installing Q2 2011, throwing a run-time error that "Unable to cast object of type 'Telerik.ReportViewer.WebForms.HttpHandler' to type 'System.Web.IHttpHandler'."
Any ideas what happened (and how to resolve)?
Best,
Scott
Chavdar
Telerik team
 answered on 11 Aug 2011
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?