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

Dynamic Cumulative Column

2 Answers 35 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 28 Dec 2013, 04:33 PM
Is there any way to make a column that automatically updates (changes based on sorting and filtering) and is a cumulative column for values in another column?  For example you have:

Column A         Cumulative Column
1                      1
2                      3
3                      6

If you sort them in the other direction:

Column A Cumulative Column 
3 3
2 5
1 6

Thanks,
Mark

2 Answers, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 30 Dec 2013, 10:21 AM
Hi Mark,

For achieving such functionality you could use a GridTemplateColumn as Cumulative column and handle the server-side ItemDataBound event to populate it.

For your convenience I have prepared a sample page with the above approach. Please refer to the attached files and see if the approach there meets your requirements.


Regards,
Konstantin Dikov
Telerik
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 the blog feed now.
0
Mark
Top achievements
Rank 1
answered on 02 Jan 2014, 07:21 PM
Hi Konstantin,

Thanks for the info!

-Mark
Tags
Grid
Asked by
Mark
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Mark
Top achievements
Rank 1
Share this question
or