C# ASP.NET MVC
I have the following code in view:
<script type="text/javascript">
$("#reportViewer1").telerik_ReportViewer({
templateUrl: "/Resources/Templates/telerikReportViewerTemplate.html",
serviceUrl: "/api/reports",
reportSource: {report: "VentasFamilia.trdp",
parameters: {
Delegaciones: $("#filterDelegacion").data("kendoMultiSelect").value(), Familias: $("#filterFamilia").data("kendoMultiSelect").value(),
Series: $("#filterSerie").data("kendoMultiSelect").value(),
FechaInicio: $("#desde").val(),
FechaFin: $("#hasta").val()
}
}
});
</script>
How should I do on the controller to receive the parameters and name of the report?
Hi,
I have tried to use the Visual Studio Report Designer for Telerik Reporting, my solution contains an asp.net core 2.1 web app and i have created an api controller, the idea is provide json data from my controller/actionresult in my web app to Report Designer Visual Studio 2017 to create a report though webservice datasource. I have recieved an error (see image#3_ReporDesignerVS2017.PNG attached). So, my question is: do the webservice datasource from designer allows connect with .SVC (WCF) or .ASMX (SOAP) services only? My web app retrieve data as REST service, what are your recommendations?
Thanks,
David Gonzalez,
Hello.
I got a PictureBox that the URI is a call to an action method :
="https://mysite.com/Stocks/Dwnlod/" + CStr(Fields.PhysicalName)
I use ASP.NET MVC Core and my pictures are not in wwwroot. They are under another directory of the project.
So I use a method to get the filestream of the file :
[Authorize]
public async Task<
FileStreamResult
> Dwnlod(string id)
{
...
var memory = new MemoryStream();
try
{
using (var stream = new FileStream(path, FileMode.Open))
{
await stream.CopyToAsync(memory);
}
}
catch (Exception e)
{
}
memory.Position = 0;
return File(memory, GetContentType(path), Path.GetFileName(path));
}
As you can see my action method is decorated [Authorize] so it's impossible to get the stream from the report even if the user is connected and authenticated. The call of URI from the report seem be anonyous. So i got a error (of course everything works #1 when I remove the decoration Authorize).
Any suggestion to keep [Authorize]? Can the report can provide some authenification when the URI is called?
Thank you all of you at Telerik.
Hi,
I have a Toggle Button on the header of the parent group (Group Name in example) which when I expand does not reflect on the toggle buttons of the child (BZ Liquor Eat In etc in the example). Same with the toggle button on Department and its sub group toggle buttons. I have attached screen shots for better understanding.
They all work fine individually, just that when I expand / collapse all, the individual buttons need to change as well. Any help would be appreciated. Thank you
http://www.telerik.com/clientsfiles/ac9e5192-e0a2-4cb9-87f6-be0c9b958413_reportdesign.png?sfvrsn=0
http://www.telerik.com/clientsfiles/852ee669-1738-4c3c-aa01-16057fd7e2b0_department-collapsed.png?sfvrsn=0
http://www.telerik.com/clientsfiles/b2243263-adcf-4fba-9452-6e952d35879d_collapsedmode.png?sfvrsn=0
http://www.telerik.com/clientsfiles/b20e189a-93a4-4411-b67d-f53c91eefcb4_department-expanded.png?sfvrsn=0
http://www.telerik.com/clientsfiles/cacd6114-95d3-4969-bfe9-c833f3b6abc7_expandedmode.png?sfvrsn=0