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

Simple report

1 Answer 25 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
GV
Top achievements
Rank 1
GV asked on 12 Mar 2010, 01:42 AM
Hi telerik,


We recentlty start using telerik products. 

I have one table TABLE_JAPVALUES  :

DATE      RDVAL  PDVAL DPVAL  CTVAL ATVAL
1-1-09       100       50        45         85        90
1-2-09       50         20        15         50        55
1-3-09       120       40        40         70        95
1-4-09       100       30        30         95        80

I want a report where I can select what columns I want to see in report with Avg. of that columns

So I want a  ckeckboxlist  or something like this that should show all the columns:
RDVAL
PDVAL
DPVAL
CTVAL
ATVAL

If I Only select
RDVAL
DPVAL
ATVAL

It should show REPORT like this:

DATE      RDVAL   DPVAL   ATVAL
1-1-09       100          45        90
1-2-09        50           15        55
1-3-09       120          40        95
1-4-09       100          30        80
AVG           92.5       32.5      80


Do you have any tutorial or sample code.

I will really appreciate your help.

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 16 Mar 2010, 01:47 PM
Hi GV,

I have attached a sample solution for your task. You will need the AdventureWorks sample database which comes with the installation of the product. Just change the connectionString accordingly and you should be able to run it.

Best wishes,
Peter
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
General Discussions
Asked by
GV
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or