Hello
I'm using a Telerik Blazor Native ReportViewer and try to display an existing report (created with the Telerik Report Designer) with dynamic data. This works great for simple data types such as strings, integers, floats etc. But I want to send a list (or an array if lists are not possible) of custom objects to the report and display it in e.g. a table.
From what I've read in your documentations I have to use a data source in the report designer. So I try to add a Object Data Source. I'm already stuck at the first step, where I have to choose a business object. The list is empty and I cannot select anything. If I understand this correct, then a business object is just an object/a class that contains some properties that I want to use in the report, is that correct? So I compiled a test application (class library .NET 7) with a file containing two classes.
namespace TestBusinessObject
{
public class MyDataSource
{
public string ArtName { get; set; }
public string Measures { get; set; }
public string ArtNo { get; set; }
public int Quantity { get; set; }
}
public class AnotherClass
{
public string Name { get; set; }
public int Number { get; set; }
}
}
I followed the steps in this article and copied my compiled DLL to the report designer's location and changed the config of the Telerik.ReportDesigner.exe.config. But there is still no business object to choose in the report designer.
I'm not even sure if this is the right way to achieve what I want, but it looks the most promising and makes the most sense to me.
Can you tell me what I'm doing wrong?
Kind Regards,
Roman