I'm developing a WPF application (C#) and I'd like to know how to edit a Telerik report. I mean, how can I allow the final user to edit non calculated fields? I'd like him to change change any data from the report and then I'd like the report to refresh the calculated fields.
Could you please help me with this?
Thanks.
5 Answers, 1 is accepted
If the users need to make slight changes to the Telerik Reporting report presentation, you can let them do so by using Report Parameters. Report parameters are used to specify the data to use in a report, connect related reports together and vary report presentation. For example, you can use a boolean report parameter to set a TextBox item's visibility and show/hide the item based on the user preferences for the parameter value.
If your users need to make substantial changes to the report definition, layout, data fields used, data sources, etc., the only options to let your users do so on demand is by providing the Standalone Report Designer (Windows tool) as a part of your integrated product, or by creating a custom module in your application which generates reports on the fly based on user input.
Note that creating a tool or a custom module which will generate the entire report definition on the fly based on some user defined rules and settings is not a trivial matter. In general, the fastest way to do this is to create the desired report layout in the Visual Studio Report Designer and use the code it automatically generated in Designer.cs file as a template for dynamic report generation. In this undertaking, you may also find useful the Programmatic Control of Reports help articles on the topic and the Reporting API Reference.
Regards,
Nasko
Telerik
I don't think I explained it correctly. I want an editable preview of the report. I've attached an image to see it clear. The user needs to change the data in the blue box while watching the preview and the TOTAL row needs to be updated right after any change. At that point and before see the final report in the report viewer I would store the changes in the database in order to create the report.
It's a tricky scenario but I hope you can help me with this.
Many thanks.
Such editable report scenario is not supported in Telerik Reporting. The scope and purpose of a Reporting solution are not to save data to the database. It is intended to process and show meaningful data to the end user.
What you can do to modify Telerik report at run-time have been listed in my previous post.
Regards,
Nasko
Telerik
Hi guys,
I have the same question as J.
Has this changed with the newest versions? Can the user do inline editing inside a report (not necessarily to save the edited field value in the DB), to make it more dynamic and without moving back and forth into different screens and reports.
Thank you,
Vlad
Hello Vlad,
Our recommendations have not changed. See the approach that includes Report Parameters described by Nasko in this post.
In addition to Standalone Report Designer and Visual Studio Report Designer, report authoring capabilities have also been extended with a Web-Based Report Designer. In case you have a web application, you can offer the end-users the possibility to edit reports directly in the application.
Regards,
Katia
Progress Telerik