Does anyone know if its possible to use Json.NET's JObject as a source for graphs? I need to bind a dynamically typed objects in runtime.
In C#, I'm doing this as a POC:
var d = new { Missing = 60D, Flagged = 10D, Valid = 30D };
var s = JsonConvert.SerializeObject(d);
var j = JsonConvert.DeserializeObject(s);
var ds = new ObjectDataSource();
ds.DataSource = data;
var report = new Report1();
report.MyPieGraph.DataSource = ds;
The report renders the graph, but only the legend, not the actual pie graph.
I've been beating my head against the wall over this all day and I'm completely puzzled.
I'm feeding a pie chart a very simple data source which consists of two columns: "Category" (string) and "Amount" (double)
If I sort by Fields.Category, it properly sorts the results alphabetically by category. If I sort by Fields.Amount, my pie chart entirely disappears.. no pie chart whatsoever.
[img]http://i.imgur.com/M0W8Ce3.png[/img]
[img]http://i.imgur.com/wvwgQTO.png[/img]
The data I'm passing in is in the form of a DataTable bound to an ObjectDataSource
Any clue what might be happening here? Is there something else I need to change as well?
Hi,
I am trying to use Telerik ReportViewer with ASP.NET UpdatePanel but getting below error when I trigger update request.
I also tried using Telerik RadAjaxManager but the result is the same.
Below is my Page and its Code Behind. I a using Internet Explorer 11 (11.0.9600)
I have added both UpdatePanel and RadAjaxManager with different ReportViewer and trigger buttons.
.aspx
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<table>
<tr>
<td>Report</td>
</tr>
<tr>
<td>
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" />
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="Button1" />
</Triggers>
<ContentTemplate>
<telerik:ReportViewer runat="server" ID="rptViewerTest"></telerik:ReportViewer>
</ContentTemplate>
</asp:UpdatePanel>
</td>
<td>
<hr />
</td>
<td>
<asp:Button ID="Button2" runat="server" Text="Button" OnClick="Button2_Click" />
<telerik:ReportViewer ID="ReportViewer1" runat="server"></telerik:ReportViewer>
<telerik2:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik2:AjaxSetting AjaxControlID="Button2">
<UpdatedControls>
<telerik2:AjaxUpdatedControl ControlID="ReportViewer1"/>
</UpdatedControls>
</telerik2:AjaxSetting>
</AjaxSettings>
</telerik2:RadAjaxManager>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
Code behind :
protected void Button1_Click(object sender, EventArgs e)
{
Telerik.Reporting.Report report = new EmployeeReport();
rptViewerTest.Report = report;
rptViewerTest.Visible = true;
}
protected void Button2_Click(object sender, EventArgs e)
{
Telerik.Reporting.Report report = new EmployeeReport();
ReportViewer1.Report = report;
ReportViewer1.Visible = true;
}
Error message:
Error: Sys.WebForms.PageRequestManagerServerErrorException: Value cannot be null.
Parameter name: key
(PFA screenshot)
Can you please help.
Thanks,
Snehal
We are currently using Oracle.ManagedDataAccess (https://www.nuget.org/packages/Oracle.ManagedDataAccess/) for our application to connect to oracle.
However, we have integrated Telerik Reporting in our WPF application, and we're using System.Data.OracleClient for that.
Now though, we have run into a problem where some of our client computers does not have System.Data.OracleClient installed, and installing this is not an option. Because we have bundled Oracle.ManagedDataAccess with our application, we hope to use this provider for telerik as well.
I changed the connection string manager to use Oracle.ManagedDataAccess.Client as a provider, however this causes an error message to be displayed in the report viewer, saying that the provider could not be found.
So, the question; Is it possible to use Oracle.ManagedDataAccess for telerik reporting, and if so; how can I configure this to work correctly?
Hello,
I have created a report in Telerik Report designer R3 2016, here i have used table and sub-report within table, for which 2 SQL queries are used in report which is taking 100 seconds to load in SQL server, but the telerik report is getting displayed in 20-25 minutes.
please help me to come out of this.
Hi,
I could not find a pointer on how to migrate to ReportSource.Parameters for Parameters with predefined values. In my WinForms application I use ReportParameter.AvailableValues. I found that Report.Parameters class has AvailableValues but not ReportSource.Parameters. Somehow I can't make the connection between the parameters defined in the report source and the definition of parameters during processing.
Is there an example for migrating existing code that uses IReportDocument.Parameters with AvailableValues.
Regards
Erwin
Hallo,
i have a problem with using multiple Checkboxes in the ReportParamters. No matter which checkbox im clicking, only the state of the first Checkboxes is changing. In the HTML Code, the Checkboxes all have the same ID.
Hello,
in our web application we use the HTML5 report viewer and we created a report (.NET type report in C#) with a list. For every list item we display an image based on the value of an status field of that list item.
For that we have four picture boxes that have the exact same location. With conditional formating we change the visibility based on the status field.
We have three questions about that:
1) Another possibility is to design only one picture box and change the background based on the status field. But if we do so we don´t have the sizing property so we need to use an image that is small enough to fit our needs.
But when we use a small image it gets blurred when zooming in. Is it possible to get it done like that (with only one picture box) with a bigger image and sizing it?
2) The above-mentioned images are displayed on the second page of the report. When the first report page gets rendered it only loads the content and images of the first page.
If we go to page 2 it starts downloading the other images so the images appear after a delay.
Is it possible to change it in a way that the images get loaded immediately after the first page finished rendering respectively after the report has finished loading
and before we navigate to the second page? So in the time the user is viewing the first page the content of the other pages is already getting loaded in the background.
3) Some of our images on page 2 are loaded "immediately" and some appear delayed one after another. We checked the network tab in Chrome console.
It says that some of them have a big "Waiting (TTFB)" time. It looks like this waiting time increases by about 500ms for every image that has this waiting time. See figure (green bar is "Waiting (TTFB)", blue is "Content Download").
Can you tell us where this waiting time could come from?
Thank you in advance!