Hi Telerik,
We are using RadGridView's -Column- AggregateFunction. We have disabled the Group Panel and Group Footer.
We are binding to an ObservableCollection of objects which implement INotifyPropertyChanged.
We have noticed that calling CalculateAggregates() updates the underlying values in the AggregatesResults collection after each call to CalculateAggregates(), however, the RadGridView's aggregate footer row in the UI will only ever update the values after the first call; subsequent calls will not update the value in the footer row.
In other words, the underlying AggregateResults values are always updated when calling CalculateAggregates(), however, the results on the screen in the RadGridView's aggregate footer row will remain as only the first updated calculated aggregate values, and will ignore displaying any further updates to the underlying aggregate values.
We have also called .Rebind() with the same effect.
XAML:
<telerik:GridViewDataColumn DataMemberBinding="{Binding aDatum}" Header="Data" DataFormatString="{}{0:,##0;(#,##0);0}" IsReadOnly="True" FooterCellStyle="{StaticResource GridViewFooterCellStyle}" HeaderTextAlignment="Center">
<telerik:GridViewDataColumn.AggregateFunctions>
<telerik:SumFunction ResultFormatString="{}{0:#,##0;(#,##0);0}"/>
</telerik:GridViewDataColumn.AggregateFunctions>
</telerik:GridViewDataColumn>
Style:
<Style TargetType="telerik:GridViewFooterCell" x:Key="GridViewFooterCellStyle">
<Setter Property="FontWeight" Value="Bold"/>
</Style>
Could you please give direction on this issue? Why does the aggregate only refresh the RadGridView's footer row the first time calling CalculateAggregates() and not on subsequent calls to this function?
Kind regards