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

[Solved] how to use GroupDescriptors in radgrid

1 Answer 99 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Radha
Top achievements
Rank 1
Radha asked on 08 Mar 2013, 02:28 PM
Hi ,

   I have 2 groupby columns and I want to aggregate few columns based on the one group by column.For ex: i have a two sections of a class like section A & B  under MPC(maths) and BIPC(biology) Groups.
Now i want to get total marks of both sections  A & B under each group and display them as summary under each Group as shown below..

EX:


Student  ID

Name

Maths

Science

English

MPC(1st groupBy)

Section- A(2nd groupby)

                1

Richards

90

60

40

2

Francisco

100

50

30

 

Section- B

                1

Richards

90

60

40

2

Francisco

100

50

30

                                               Total MPC Marks:

                                                    Maths:380

                                                    Chemistry:220

                                                    English:140

B.I.PC

Section - A

1

Robert

100

100

100

2

Charles

200

200

200

                                               Total B.I.PC Marks:

                                                    Maths:300

                                                    Chemistry:300

                                                    English:300

I want something like this.

Any help would be greatly appreciated. 

Thanks.
Radha

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 13 Mar 2013, 11:35 AM
Hello Radha,

You can use Templates to achieve the requested functionality:
http://demos.telerik.com/aspnet-ajax/grid/examples/groupby/headerandfootertemplates/defaultcs.aspx

Hope this helps.

Kind regards,
Eyup
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Radha
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or