Update summary after INotifyPropertyChanged

2 posts, 0 answers
  1. hui
    hui avatar
    1 posts
    Member since:
    Nov 2016

    Posted 27 Nov 2016 Link to this post

    I have a GridView whose ItemsSource binding to an ObservableCollection. The item in the collection implements INotifyPropertyChanged. After I update a property in the item code behind for example 'Price', the related SumFunction in GridViewDataColumn doesn't update. I don't want to call GridView.CalculateAggregates method. Is there any way to solve this problem.
  2. Stefan
    Stefan avatar
    1073 posts

    Posted 29 Nov 2016 Link to this post

    Hi Hui,

    Generally, this would be the expected behavior. When editing an item outside the UI, the data engine needs to receive a notification, so that it updates the aggregates. The approach for achieving this is documented in the Aggregates are not updated help topic.

    Hopefully, it helps.

    Stefan X1
    Telerik by Progress
    Telerik UI for WPF is ready for Visual Studio 2017 RC! Learn more.
Back to Top