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

[Solved] RadGrid Aggregate shows error

3 Answers 134 Views
Grid
This is a migrated thread and some comments may be shown as answers.
lekha
Top achievements
Rank 1
lekha asked on 22 Jun 2009, 12:59 PM
Hi
I am having a radgrid and i use the aggregate = "sum" It loads if sum is greater than Zero.But it shows error if sum is Zero
What i have to do for this??
<telerik:GridBoundColumn DataField="TotalQuantity" HeaderText="Total Quantity" Aggregate="Sum"   FooterText="Total:">                                                                                
</telerik:GridBoundColumn>


Lekha


3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 22 Jun 2009, 02:06 PM
Hi Lekha,

Please find attached  a screenshot that demonstrates the desired functionality. The sum is Zero and RadGrid is working properly.
For more information about Group Footers, please review this online demo.

Sincerely yours,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
lekha
Top achievements
Rank 1
answered on 24 Jun 2009, 06:02 AM
Hi Telrik team,
                      My problem solved.Actually the problem is I used the aggregate="sum" for a dynamic column that is.
dtItemDetails.Columns.Add("TotalQuantity")
Then the error shows as "sum not supporting system.object"

Then i added the datatype also.
dtItemDetails.Columns.Add("TotalQuantity", System.Type.GetType("System.Int32"));

Then it works...
Thank you

0
Pavlina
Telerik team
answered on 24 Jun 2009, 07:25 AM
Hello Lekha,

I am glad you found a solution to your problem.
Please do not hesitate to write if any issues arise.

All the best,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
lekha
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
lekha
Top achievements
Rank 1
Share this question
or