I am trying to customize the number of decimal places that are displayed in the Summary. I also want the customization to be applied to just a few columns.
Is there a way to define a style that will change the display format, let say from 2 decimal places to 5 decimal places for just certain columns? Also in the grid we do not name the columns, we bind to the collection and the public properties of the item are the columns name.
Thanks
Thanks for the quick response.
This is very helpful.
Hello,
I have modified the sample I attached before, so now it works as you want. Basically this time I used different binding for the TextBlock’s Text, with MultiConverter, so I can track the changes in the values when a filter is applied.
Hi
I am also looking for similar solution.
I tried the sample that you uploaded.
Some how the summary value is not updating on applying filtering.
To reproduce:
==========
1 In XAML,
Modify <igDP:FieldSettings AllowSummaries="True"/>
To <igDP:FieldSettings AllowSummaries="True" AllowRecordFiltering="True"/>
2. Run the code.
3. Select "Sum" for Age. This shows Sum = 113.7785
4. Now select "1" from Id column filter list.
5. Result grid show one row (with age 0.10). But age sum is not reflecting and it still shows Sum = 113.7785.
Can you fix the sample and reupload to show the proper sum?.
This is kind of urgent.
I am just checking if you got this worked out or you still require any assistance or clarification on the matter.
Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I copied the default Style of the SummaryResultPresenter and set a Converter of the TextBlock’s Text that is used to display the Summary’s Value. Also in the Converter I checked which is the Column, to determine whether to use Format or not. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.