How to pass on new value only in the CellEditEnded event?

2 posts, 0 answers
  1. Mikk
    Mikk avatar
    8 posts
    Member since:
    May 2013

    Posted 18 May 2014 Link to this post

    Hello,

    i am using a Gridview that is having a RadObservableCollection<T> (where T is DependencyObject, INotifyPropertyChanged) as ItemsSource. The same collection is also used in a Chartview as Datasource for a Lineseries.
    Any changes in the Chart (Drag&Drop) are reflected in the Gridview and the other direction works too.

    My problem is the way the editing is passed on:
    I have a Double Column which is editable and reflect the values that are shown in the Chart too. But the editing changes are passed on the the chart on every keypress during the editing which is very irritating.

    So lets say someone wants to enter 749 as new value the behavior is now like this:

    • press key 7 -> datapoint in chart jumps to Y-Value 7
    • press key 4 -> datapoint in chart jumps to Y-Value 74
    • press key 9 -> datapoint in chart jumps to Y-Value 749

    what i want is this:

    • press key 7 -> nothing
    • press key 4 -> nothing
    • press key 9 -> nothing
    • press return -> datapoint in chart jumps to Y-Value 749

    I guess I need to block some notification sending in the BeginningEdit event and pass out the final new value only in the CellEditEnded event. But i havent been able to work out how.

    Thanks in advance!
    Mikk

  2. Mikk
    Mikk avatar
    8 posts
    Member since:
    May 2013

    Posted 20 May 2014 Link to this post

    solved it myself already .. went for a different binding mode and everything works now as expected.
Back to Top