Telerik Forums
Reporting Forum
13 answers
1.2K+ views

Hello,

in my webproject I have integrated a reporting feature.

Please see the attached file!

Now I want to replace the listview with a dropdownmenu.

How can I do this?

I have not found a possibility to configure it.

In this example I have only two items, but in other cases there are more then two.

By the way: How can I rename the Preview-Button?

 

 

 

 

 

 

Simon
Top achievements
Rank 1
 answered on 31 Jan 2019
5 answers
833 views

Hi

We've just updated our project for using Telerik Reporting 2019R1.

The update looks amazing! 

Our project is configured for dotnetcore-2.2 target framework and works prefect on Windows.

But unfortunately it crashes when I'm trying to open a page with Report Viewer.

I see the message: Cannot access the Reporting REST service. (serviceUrl = '/api/reports/'). Make sure the service address is correct and enable CORS if needed. (https://enable-cors.org)

Here is the log output:

info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
      Request starting HTTP/1.1 GET http://localhost:5000/api/reports/formats  
warn: Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware[2]
      AcceptLanguageHeaderRequestCultureProvider returned the following unsupported UI Cultures 'en-us'.
info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[1]
      Route matched with {action = "GetDocumentFormats", controller = "Reports"}. Executing action ERP.Web.Controllers.ReportsController.GetDocumentFormats (ERP.Web)
info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[1]
      Executing action method ERP.Web.Controllers.ReportsController.GetDocumentFormats (ERP.Web) - Validation state: Valid
info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[2]
      Executed action method ERP.Web.Controllers.ReportsController.GetDocumentFormats (ERP.Web), returned result Microsoft.AspNetCore.Mvc.JsonResult in 123.9889ms.
info: Microsoft.AspNetCore.Mvc.Formatters.Json.Internal.JsonResultExecutor[1]
      Executing JsonResult, writing value of type 'System.Collections.Generic.List`1[[Telerik.Reporting.Services.Engine.ExtensionInfo, Telerik.Reporting, Version=13.0.19.116, Culture=neutral, PublicKeyToken=a9d7983dfcc261be]]'.

Unhandled Exception:
 
Unhandled Exception: Unhandled Exception: 
Unhandled Exception: 
Unhandled Exception: 
Unhandled Exception: 
Unhandled Exception: System.TypeInitializationException: The type initializer for 'Telerik.Reporting.Cache.Lock' threw an exception. ---> System.PlatformNotSupportedException: Windows Principal functionality is not supported on this platform.
   at System.Security.Principal.SecurityIdentifier..ctor(WellKnownSidType sidType, SecurityIdentifier domainSid)
   at Telerik.Reporting.Cache.Lock..cctor()
   --- End of inner exception stack trace ---
   at Telerik.Reporting.Cache.Lock..ctor(String key)
   at System.Threading.Thread.ThreadMain_ThreadStart()
   at Telerik.Reporting.Cache.LockProviderWindows.GetLock(String key)
   at Telerik.Reporting.Services.Engine.SyncedQueue.TryDequeue(String& itemId)
   at Telerik.Reporting.Services.Engine.TaskQueue.WorkerThread.ProcessItems()
   at Telerik.Reporting.Services.Engine.TaskQueue.WorkerThread.ThreadProc()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.Thread.ThreadMain_ThreadStaSystem.TypeInitializationException: The type initializer for 'Telerik.Reporting.Cache.Lock' threw an exception. ---> System.PlatformNotSupportedException: Windows Principal functionality is not supported on this platform.
   at System.Security.Principal.SecurityIdentifier..ctor(WellKnownSidType sidType, SecurityIdentifier domainSid)
   at Telerik.Reporting.Cache.Lock..cctor()
   --- End of inner exception stack trace ---
   at Telerik.Reporting.Cache.Lock..ctor(String key)
   at System.Threading.Thread.ThreadMain_ThreadStart()
   at Telerik.Reporting.Cache.LockProviderWindows.GetLock(String key)
   at Telerik.Reporting.Services.Engine.SyncedQueue.TryDequeue(String& itemId)
   at Telerik.Reporting.Services.Engine.TaskQueue.WorkerThread.ProcessItems()
   at Telerik.Reporting.Services.Engine.TaskQueue.WorkerThread.ThreadProc()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.Thread.ThreadMain_ThreadStart()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()rt()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()System.TypeInitializationException: The type initializer for 'Telerik.Reporting.Cache.Lock' threw an exception. ---> System.PlatformNotSupportedException: Windows Principal functionality is not supported on this platform.
   at System.Security.Principal.SecurityIdentifier..ctor(WellKnownSidType sidType, SecurityIdentifier domainSid)
   at Telerik.Reporting.Cache.Lock..cctor()
   --- End of inner exception stack trace ---
   at Telerik.Reporting.Cache.Lock..ctor(String key)
   at System.Threading.Thread.ThreadMain_ThreadStart()
   at Telerik.Reporting.Cache.LockProviderWindows.GetLock(String key)
   at Telerik.Reporting.Services.Engine.SyncedQueue.TryDequeue(String& itemId)
   at Telerik.Reporting.Services.Engine.TaskQueue.WorkerThread.ProcessItems()
   at Telerik.Reporting.Services.Engine.TaskQueue.WorkerThread.ThreadProc()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.Thread.ThreadMain_ThreadStart()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()System.TypeInitializationException: The type initializer for 'Telerik.Reporting.Cache.Lock' threw an exception. ---> System.PlatformNotSupportedException: Windows Principal functionality is not supported on this platform.
   at System.Security.Principal.SecurityIdentifier..ctor(WellKnownSidType sidType, SecurityIdentifier domainSid)
   at Telerik.Reporting.Cache.Lock..cctor()
   --- End of inner exception stack trace ---
   at Telerik.Reporting.Cache.Lock..ctor(String key)
   at System.Threading.Thread.ThreadMain_ThreadStart()
   at Telerik.Reporting.Cache.LockProviderWindows.GetLock(String key)
   at Telerik.Reporting.Services.Engine.SyncedQueue.TryDequeue(String& itemId)
   at Telerik.Reporting.Services.Engine.TaskQueue.WorkerThread.ProcessItems()
   at Telerik.Reporting.Services.Engine.TaskQueue.WorkerThread.ThreadProc()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.Thread.ThreadMain_ThreadStart()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

System.TypeInitializationException: The type initializer for 'Telerik.Reporting.Cache.Lock' threw an exception. ---> System.PlatformNotSupportedException: Windows Principal functionality is not supported on this platform.
   at System.Security.Principal.SecurityIdentifier..ctor(WellKnownSidType sidType, SecurityIdentifier domainSid)
   at Telerik.Reporting.Cache.Lock..cctor()
   --- End of inner exception stack trace ---
   at Telerik.Reporting.Cache.Lock..ctor(String key)
   at System.Threading.Thread.ThreadMain_ThreadStart()
   at Telerik.Reporting.Cache.LockProviderWindows.GetLock(String key)
   at Telerik.Reporting.Services.Engine.SyncedQueue.TryDequeue(String& itemId)
   at Telerik.Reporting.Services.Engine.TaskQueue.WorkerThread.ProcessItems()
   at Telerik.Reporting.Services.Engine.TaskQueue.WorkerThread.ThreadProc()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext execution
System.TypeInitializationException: The type initializer for 'Telerik.Reporting.Cache.Lock' threw an exception. ---> System.PlatformNotSupportedException: Windows Principal functionality is not supported on this platform.
   at System.Security.Principal.SecurityIdentifier..ctor(WellKnownSidType sidType, SecurityIdentifier domainSid)
   at Telerik.Reporting.Cache.Lock..cctor()
   --- End of inner exception stack trace ---
   at Telerik.Reporting.Cache.Lock..ctor(String key)
   at System.Threading.Thread.ThreadMain_ThreadStart()
   at Telerik.Reporting.Cache.LockProviderWindows.GetLock(String key)
   at Telerik.Reporting.Services.Engine.SyncedQueue.TryDequeue(String& itemId)
   at Telerik.Reporting.Services.Engine.TaskQueue.WorkerThread.ProcessItems()
   at Telerik.Reporting.Services.Engine.TaskQueue.WorkerThread.ThreadProc()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.Thread.ThreadMain_ThreadStart()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()System.TypeInitializationException: The type initializer for 'Telerik.Reporting.Cache.Lock' threw an exception. ---> System.PlatformNotSupportedException: Windows Principal functionality is not supported on this platform.
   at System.Security.Principal.SecurityIdentifier..ctor(WellKnownSidType sidType, SecurityIdentifier domainSid)
   at Telerik.Reporting.Cache.Lock..cctor()
   --- End of inner exception stack trace ---
   at Telerik.Reporting.Cache.Lock..ctor(String key)
   at System.Threading.Thread.ThreadMain_ThreadStart()
   at Telerik.Reporting.Cache.LockProviderWindows.GetLock(String key)
   at Telerik.Reporting.Services.Engine.SyncedQueue.TryDequeue(String& itemId)
   at Telerik.Reporting.Services.Engine.TaskQueue.Wo
Process finished with exit code 6.

Nasko
Telerik team
 answered on 31 Jan 2019
0 answers
72 views

Hello,

I'm Making  grouped report with crosstab according to the following layout:

 

ParentUnit

  SonUnit

ParentOption

  SonOption

SUM(data

ParentUnit2
  SonUnit
ParentOption
  SonOption
SUM(data)

 

The datasource i am using is flat ({parentunit, sonunit, parentoption, sonoption, sum(data)})

Report generation takes too much time 

can you give advice how report can be optimized.

thanks

tamuna
Top achievements
Rank 1
 asked on 31 Jan 2019
1 answer
124 views

Hi

I have very large report which has over 60k controls, so it becomes almost impossible for me to handle. The main problem occurs when designing page loaded. It shows OutOfMemory Error. Please help me divide report into multiple parts so that i can manage them easily.

 

Thanks in advance.

Nasko
Telerik team
 answered on 30 Jan 2019
3 answers
169 views

Hello,

I am missing the datatype double in dropdownlist of the property "Type".

I become errors in my sourcecode when I try to convert from float to double.

So, I need that datatype.

It is possible to expand the dropdownlist with the datatype double?

Why is double be ommitted? I think it is important.

 

 

Silviya
Telerik team
 answered on 29 Jan 2019
4 answers
693 views
Hello

I'm using Telerik.Reporting (Q3 2012 build 6.2.12.1123) for a MVC2 C# project.

Is it possible to use Radiobuttons instead of Checkboxes in a ReportView? Are there any examples?
I've got a boolean value which I want to show as a Radiobutton (True/False).


Jobi
Top achievements
Rank 1
 answered on 29 Jan 2019
1 answer
144 views

I have a report with a Crosstab on it. In Group Explorer, there is a single Parent Row group with one child (the details).  

My issue is that I can't seem to control the size of the Group Footer row - Can Grow is set to false (for the row and all text boxes within), yet it always matches the size of the detail section which can be huge. 

Todor
Telerik team
 answered on 28 Jan 2019
1 answer
720 views

We have a report generated using Telerik Standalone designer where we use CSV data sources. Sometimes these data sources contain Asian characters. Our default font is "Segoe UI" which does not support these characters when generating the PDF file. Is there a way that we can define a secondary font when generating a PDF file so when a PDF is generated it will identify these characters are not available in the primary font and switch to the secondary font? 

Thank you. 

Todor
Telerik team
 answered on 25 Jan 2019
1 answer
167 views

Hello,
I'm creating a report using something similar to the following classes:

public class Point
{
    public double X { get; set; }
    public double Y { get; set; }
}
 
public class Series
{
    public List<Point> Points { get; set; }
}
 
public class MultipleSeries
{
    public string Header { get; set; }
 
    //There could be any number of these
    public List<Series> Series { get; set; }
}
 
public class ManyMultipleSeries
{
    public List<MultipleSeries> ManySeries { get; set; }
}

 

Basically, the main report will bind to 'ManyMultipleSeries'. This class will have a list of 'MultipleSeries', which are bound to a sub report that contains the chart. The 'MultipleSeries' class could contain any number of 'Series' that need to be displayed in the chart. I could not find any way of creating a dynamic number of series like this in the docs. Thanks for any help.

Todor
Telerik team
 answered on 25 Jan 2019
4 answers
460 views
Hello,

I have the following problem: I have Telerik Report Q2 2010 class with SqlDataSource set on stored procedure. This procedure has several output parameters which are (obviously) evaluated during procedure's execution. Also, this procedure returns some columns from database. Now what I want is to retrieve these parameters value after execution of procedure and use them in designer (something like "{Fields.ReturnedValue}" in for example textbox).

What is the simpliest way to do this? Some examples would be helpful.

Best regards
Rafael
Silviya
Telerik team
 answered on 24 Jan 2019
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?