Completed
Last Updated: 04 Dec 2017 15:12 by ADMIN
Graham
Created on: 14 Sep 2016 22:25
Type: Feature Request
4
IoC (Dependency Injection) Support for Report Classes
I find it extremely limiting and frustrating to not have control over how the .NET Report class is initialized, and not being able to pass in any type of object/dependency (either into the constructor or by setting a property.) This makes it very difficult to keep custom reports decoupled from other code modules and make them unit-testable. 

There is the InstanceReportSource, which would have been perfect to solve this problem, but it's apparently deprecated.
http://docs.telerik.com/reporting/t-telerik-reporting-instancereportsource

DevExpress reports for example allow you to create the report instance yourself, and you can pass any objects you want directly into the constructor. 

This is what I find to be the biggest drawback to Telerik reports. 
1 comment
ADMIN
Milen | Product Manager @DX
Posted on: 04 Dec 2017 15:11
Hi, the InstanceReportSource is not deprecated. The API ref summary is somewhat misleading and we will improve it. We run into some difficult support cases when InstanceReportSource gets modified and reused for multiple async rendering operations. We need to explain that better. Thank you for your input. I will consider the case closed and will let you know here once the help documentation gets updated.