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

ResultFormatString with static property?

1 Answer 24 Views
GridView
This is a migrated thread and some comments may be shown as answers.
E Pons
Top achievements
Rank 1
E Pons asked on 21 Dec 2013, 03:48 AM

Hello,



We have Q3 2012. 



I'm trying to use a static property to specify the ResultFormatString for an AggregateFunction,

<telerik:GridViewDataColumn.AggregateFunctions>
        <telerikData:SumFunction ResultFormatString="{x:Static l:CustomFormat.CurrencyWithMinus}"/>
</telerik:GridViewDataColumn.AggregateFunctions>

But the property's value (e.g. $#,##0.00) is displayed as a literal in the gridview cell.

We can't use the string format "c" because we need negative values to be prefixed with "-"
rather than having parentheses around them. Can you please tell me if there's some way to make this work?

Thanks much!










1 Answer, 1 is accepted

Sort by
0
E Pons
Top achievements
Rank 1
answered on 03 Jan 2014, 12:37 AM

Can anyone help on this?


Thanks!

Tags
GridView
Asked by
E Pons
Top achievements
Rank 1
Answers by
E Pons
Top achievements
Rank 1
Share this question
or