Telerik Forums
Reporting Forum
1 answer
326 views

Hi,


I need a chart with one or more line series, configured in stand alone RD.
The line series are Numerical on both axes (it's a temperature (X) vs value (Y) plot).

The data for the Graph will be provided at runtime through object reference.

My data source format is as follows:
```
class Data
{
   List<double> Temperature {g;s;}
   List<double> Value {g;s}
}
```
I was able to 'import' the dll to the designer and the data source was set up correctly (I know this because I'm able to use other data sources to successfully populate other elements of the report).

----------------------------------

What I did so far?
* I inserted a new line graph into the report
* I tried setting the Category to Temperature and Value to Value in the Wizard
* I named the graph to be able to find it at runtime and set it's DataSource
* In various attempts to configure the graph I tried setting the X and Y axes of the Graph to Numerical type or X to Category and Y to Numerical (I get the legend and axes preview in the designer)
* At runtime I set the DataSource of the Graph the same way as DataSource of a Table (which works ok for the table): `((Graph)(report.Items.Find("nameOfGraph", true)[0])).DataSource = dataSourceObject;`

The problem I have is that there are no series in the generated report in the Graph while other parts of the report are populated correctly.

Could you please provide me with a walktrough of how to configure a line Graph in Report Designer with the assumption that the data will be provided at runtime?

Thanks!

Todor
Telerik team
 answered on 31 May 2018
5 answers
1.1K+ views

I got a R2 2018 release of telerik reporting and excited about having Web Service Data Source option to connect to my OData REST service end point to retrieve the data.

Let's say that my web service endpoint responds below JSON:

{
    "@odata.context": "My Context",
    "value": [
        {
            "ShippingCompleted": false,
            "TransactionDate": "2017-05-12T00:00:00+05:00",
            "ShippingName": "Eshmatov Eshmat", 
            "Address": {

                       "City": "Serviceland"

             }  

        }
    ]
}

If you look on an attached image, the data explorer contains a data source which have only two fields. The first is string (@odata.context) and second is Object (value).

For example, on report I want to have an access to City filed  [=Fields.value.Address.City] or ShippingName field [=Fields.value.ShippingName]. This is not working and it is showing the System.Object [] in report. As well in data explorer there is no way to see what fields the value field have.

Is it a bug, or it is designed for one level of json tree? Is there any workaround for this?

Todor
Telerik team
 answered on 30 May 2018
1 answer
707 views
I have a very simple need but cannot find an answer anywhere. I am using a Html5 Web Forms Report Viewer. I am displaying a table with a few types of columns. One of the columns displays data for various addresses (ie. 399 Main Street). I want to search that field so I set up a simple report parameter on the main part of the report - outside the table structure and then set up a filter inside the table using the name of this field for this expression (= Fields.FullAddress), a 'Like' operator and finally the parameter (= Parameters.Address.Value). This parameter structure sets up a textbox as a search editor, which is what I want. From this point on, the functionality I'm looking for is to type in part of an address and to use the value of the textbox to resolve a 'LIKE' expression, as the filter states. When I run the report, I don't get any values at all, no matter what I put into the textbox. I'm not sure what I am missing here. Maybe I'm missing the whole concept the 'Like' filter. Can anybody help me on this?
Silviya
Telerik team
 answered on 29 May 2018
1 answer
94 views

Has anyone else noticed this or am I doing something wrong.

Upon getting a new version of the various Telerik suite of libraries, I often end up running the Report Upgrade wizard.  That wizard seems to be doing something wrong in VS 2017.   Here is an example of what I am seeing.

I have telerikReportViewer-12.0.18.416.min.js and telerikReportViewer.kendo.12.0.18.416.min.js in my existing project.  The project is bound to Team foundation Server source control..  Upon running the wizard, the project processes normally and appears to update correctly.  That catch I am seeing is that the wizard appears to remove the old version of the viewers from your project and adds the new version to your project.  All of this seems to be done outside source control.

 

I.E., at the end of the upgrade cycle, source control still thinks the 12.0.18.416 items are in your project and that the upgraded versions are not part of your project.  A manual update of both is necessary.  I do not see this behavior on other suites such as ASPX or MVC/Kendo products.

 

Todor
Telerik team
 answered on 28 May 2018
4 answers
1.0K+ views

Hello.  Why I have to copy all those reference in my .aspx page to avoid this error when i press the export button. 

It's not possible to use thoses references allready in _layout page?

 

<link href="https://kendo.cdn.telerik.com/2016.3.1118/styles/kendo.common.min.css" rel="stylesheet" type="text/css" />
<link href="https://kendo.cdn.telerik.com/2016.3.1118/styles/kendo.mobile.all.min.css" rel="stylesheet" type="text/css" />
<link href="https://kendo.cdn.telerik.com/2016.3.1118/styles/kendo.dataviz.min.css" rel="stylesheet" type="text/css" />
<link href="https://kendo.cdn.telerik.com/2016.3.1118/styles/kendo.default.min.css" rel="stylesheet" type="text/css" />
<link href="https://kendo.cdn.telerik.com/2016.3.1118/styles/kendo.dataviz.default.min.css" rel="stylesheet" type="text/css" />
<script src="https://kendo.cdn.telerik.com/2016.3.1118/js/jquery.min.js"></script>
<script src="https://kendo.cdn.telerik.com/2016.3.1118/js/jszip.min.js"></script>
<script src="https://kendo.cdn.telerik.com/2016.3.1118/js/kendo.all.min.js"></script>
<script src="https://kendo.cdn.telerik.com/2016.3.1118/js/kendo.aspnetmvc.min.js"></script>

Silviya
Telerik team
 answered on 28 May 2018
7 answers
1.2K+ views

Dear Support team,

I am trying view to Telerik report on the server. On my local machine everything works fine but  when i deploy it on the server it says 

Error creating a report instance and google console log I see it as 500(internal server error) missing parameters and instances.

Please provide immediate assistance

 

 

muhammed
Top achievements
Rank 1
 answered on 25 May 2018
1 answer
184 views

I'm trying to figure out how to pass a list of integers client side from a .NET application to a multi value parameter on a HTML5 report.

For a single parameter it works fine.

parameters: { CompanyIds: 3}

 

But if I try to pass multiple values it fails with a JavaScript syntax error.

parameters: { CompanyIds: {3229, 3332, 3223, 3334} }

 

What is the correct way to pass a list of integers to a multi value parameter client side for a HTML5 report?

 

 

Todor
Telerik team
 answered on 25 May 2018
1 answer
336 views

I have a table which gets populated, depending on a report value.

If the value is not correct the table\panel is hidden. It is in the table of contents, and when hidden still shows up in the table, however has a page number of 0 and clicking on the row causes an error to display.

Ivan Hristov
Telerik team
 answered on 25 May 2018
2 answers
259 views

I have a bunch of tables from different data sources where I want to group certain tables into a Level of the Table of Contents. There is no repeating tables\data\structure to these. According to the documentation on the Table of Contents:

"To form a hierarchical structure of the TOC, you need to set the TocText property of the report groups, the CrossTab/Table groups, the Detail section and the Report (useful for SubReports)"

It seems the only way to have anything beyond level 1 is to use Report Groups, CrossTab\Table groups or the Detail Section.

As mentioned, I have no repeating data, which makes Report Groups wrong.

None of this is from a single data source, so table groups is out, unless a ridiculous implementation is done where each section somehow gets its own group.

Detail section would mean each and every group would need to be a different SubReport. While this would work, I feel it is a work around and not a valid solution as SubReports are for modularization\re-usability, of which none of these will be used again.

Why can there not be a TOCLevel along with TOCText or hierarchical structure interpreted from stacking panels, as the tool-tip of Panels states it is a "grouping mechanism for organizing report items" ?

 

Thanks for the input and help.

Travis
Top achievements
Rank 1
 answered on 24 May 2018
2 answers
137 views
Hi,

I'm looking at doing a custom skin for my web viewer.  I've already got one done with the black skin and that works fine.  What I am now looking at is one for the Silk skin, this is a little more troublesome as I'd like to use PNG files rather than GIFs for their alpha transparency.

Is there a CSS based way of changing the various button images?

Oh and any solution needs to respect the fact that I'm stuck on Q1 2013 release thanks to the fact that I can't yet upgrade to .net 4.

Regards

Jon
Naveena
Top achievements
Rank 1
 answered on 24 May 2018
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?