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

How do I add a column to display the row total in a radrid

3 Answers 28 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sam Kamau
Top achievements
Rank 1
Sam Kamau asked on 13 May 2010, 03:37 PM
Hi guys?

I am newbie with telerik.

I would like to sum all the values in a row and display them in a column that will be added programmatically. The grid has auto-generated the pre-existing columns.

How do I add this new column??


3 Answers, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 13 May 2010, 03:45 PM
Hi Sam,

You need to use a GridCalculatedColumn for the calculated total values. Here is a help article that has more on that (the paragraph GridCalculatedColumn):
http://www.telerik.com/help/aspnet-ajax/grdcolumntypes.html

Hope it helps.

Regards,
Tsvetoslav
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.
0
Sam Kamau
Top achievements
Rank 1
answered on 13 May 2010, 03:59 PM
How do I access the new column programmatically bearing in mind that all the other columns are auto-generated??

How do I add such a column programmatically? In which event??

Regards,

Sam
0
Tsvetoslav
Telerik team
answered on 14 May 2010, 10:56 AM
Hello Sam,

You can safely add the column on Page_Load. I understand that the other columns might not be available at that stage, however, you can get the data fields for the calculated column through a database operation or if you are using a data-source object, then you already know what those fields are. If you need more concrete directions could you paste your complete mark-up and code-behind (do use the code-formatter tool of the ticket editor. It is important to demonstrate how the grid is data-bound.

Thanks.

Greetings,
Tsvetoslav
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
Grid
Asked by
Sam Kamau
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Sam Kamau
Top achievements
Rank 1
Share this question
or