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

AggregateFunctions SumFunction

1 Answer 53 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Alexandre
Top achievements
Rank 1
Alexandre asked on 24 Sep 2010, 06:28 PM
Hi,

I have a SumFuncion in my gridviewThis summing all the column values.

I need that when the total sum is negative it appears on screen 0.

Can you help me?

Thanks,
Alexandre Rodrigues

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 27 Sep 2010, 07:25 AM
Hi Alexandre,

A possible approach would be to create your own custom SumFunction that will return "0" when the result is negative. You can find an example about the way of doing this in our demos.
 

Kind regards,
Maya
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
GridView
Asked by
Alexandre
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or