Telerik Forums
Reporting Forum
5 answers
505 views
In the CrossTab Table I have two columns for each column group and I want those columns to size according to the largest value in the list.  I tried to use the CanGrow and CanShrink properties but they don't appear to work.  I have set them to True for every column in the table but it still either wraps the text or leaves it too wide.  How can I get the column sizes to size properly?
Stef
Telerik team
 answered on 02 Oct 2015
1 answer
519 views

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

Stef
Telerik team
 answered on 02 Oct 2015
4 answers
400 views
I am brand new to Telerik and focused on learning both HTMLChart and the ReportViewer for reporting in an ASP.NET web site. Got a simple HTMLChart working first day.  Now I want to learn the reporting side using the report-designer tools. I have come to conclusion that reports using the designer should be built using the design environment within VS 2013 (although I was able to display a simple, no parameters report from a .trdx file by using UriReportSource()). However, I cannot figure out how to get the report designer started in VS 2013.

The link below says to click on or right-mouse "report.cs". However, I don't have a report.cs file in my project. Any thoughts? What am I missing? I have installed both the DevCraft AJAX UI and Reporting using the "Control Panel" from Telerik. All of the tools are there. But no option to start the report designer in the Telerik menu.

- VS 2013
- Latest Telerik build Q2 2014 as of yesterday.
- Windows 8.1

http://www.telerik.com/help/reporting/ui-report-designer.html

TIA
Don
Stef
Telerik team
 answered on 02 Oct 2015
4 answers
323 views

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 ...));

Stef
Telerik team
 answered on 02 Oct 2015
1 answer
185 views

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?

 

Nasko
Telerik team
 answered on 02 Oct 2015
1 answer
127 views

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.

Stef
Telerik team
 answered on 01 Oct 2015
6 answers
515 views
Hi,

I have a Report based on a database table. I have interger fields in the table(0 for false and -1 for true). These fields should be represented in report as checkboxes.
How can I bind the columns for checkbox state (checked/unchecked).

I am using following expression for the Value property of the checkbox, but the checkstate is not changing.
= IIf(Fields.col1< 0, True, False).

Am i missing anything?

Thanks
TelDev
Stef
Telerik team
 answered on 30 Sep 2015
2 answers
104 views

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");

Stef
Telerik team
 answered on 30 Sep 2015
4 answers
179 views
Can anyone point me to a code sample of horizontal flow of items as described in this article? I cannot open the visual designer for the hyperlinked example at the bottom of the page.
Stef
Telerik team
 answered on 30 Sep 2015
3 answers
1.2K+ views
I want to hide table column according to the selected parameter(filter). How I can implement this using ​Telerik ​Report Designer 
Stef
Telerik team
 answered on 30 Sep 2015
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?