This is a migrated thread and some comments may be shown as answers.

Questions about coding in Telerik Reporting (Newbie)

1 Answer 59 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Shane
Top achievements
Rank 1
Shane asked on 17 Sep 2013, 06:53 PM
Hi,

I'm new to Telerik Reporting (Q2 2013 SP1) in ASP.NET. I have only been playing with it for a week or so and I have read the documentation but i can't find the answers to some basic questions.

1. The biggest question is: When building a Report Item, Visual Studio shows a Report.cs and a Report.Designer.cs. The wizard puts everything in the Designer.cs (I would have thought some of it if not all to be in the Report.cs) so what goes in Report.cs? What type of things can I put there or does that Report.cs file stay as is? (sorry if stupid question).

2. I'm interested in creating my own UI (date pickers, checkboxes etc..) and then hitting a button to trigger a report in the ReportViewer. I saw this link that i can bind a datatable to the report which I would like to do. My stumbling block is, in order to build a report, I already have to have the ObjectDatSource predefined in order to design the report so what happens to that ObjectDataSource when I bind another datatable to the report when the existing ObjectDatSource in the report is pointing to a different function? Do i remove it from the Designer after the report is created?

Thanks!
Shane

1 Answer, 1 is accepted

Sort by
0
David
Top achievements
Rank 1
Iron
Veteran
Iron
answered on 17 Sep 2013, 07:10 PM
First, I am not a representative of Telerik.  I am a "common" user.

What goes in the the standard c-Sharp code file?  Anything you want.   One of the more useful aspects of Telerik's reporting engine is that it is based upon the standard development environment.  You can easily add your own custom methods to a given report to provide  you with whatever business logic  you require.  This is something  you could never do in other platforms.  Your creativity is limited by your imagination.  I will admit that in two years of coding with Telerik, I have had to resort to my own custom methods twice.

Your second question is somewhat of a puzzler to me.   I know of no good way to migrate a report from one datasource to another.  I tend to add a second object datasource to the report then manually migrate controls one at a time to the new datasource/fields.  A nightmare but it works.  After all controls are migrated I delete the original datasource and hit compile. I find that removing the original datasource before adding the second causes bad things.




Tags
General Discussions
Asked by
Shane
Top achievements
Rank 1
Answers by
David
Top achievements
Rank 1
Iron
Veteran
Iron
Share this question
or