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

[Solved] Showing Minus Value in Grid Header

1 Answer 135 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rahul
Top achievements
Rank 1
Rahul asked on 04 Sep 2009, 07:33 AM
<telerik:GridGroupByField Aggregate="Avg" FieldAlias="BudgetBal" FieldName="EstCost"
                                        FormatString="{0:c}" />


I hv one column that contains some product value, when i calculate that value sometimes it goes in minus. when it in minus it will not shown minus condition. 

i want to show the value Minus if in miuns

like this
Balance Value = 3000  if not minus
balnce value = -6000 if caluctiaon goes in minus but now it shows like this Balance = 6000

Reply please urgent

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 08 Sep 2009, 08:04 AM
Hi rahul,

If you group on the filed which contains the negative values, the aggregate value will be rendered in the group header. This is demonstrated in the code sample attached to this message. Take a look at it and let me know if this is the expected behavior, or if I am leaving something out.

Sincerely yours,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Rahul
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or