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

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

1 Answer 30 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Mikk
Top achievements
Rank 1
Mikk asked on 18 May 2014, 11:12 AM

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

1 Answer, 1 is accepted

Sort by
0
Mikk
Top achievements
Rank 1
answered on 20 May 2014, 10:37 AM
solved it myself already .. went for a different binding mode and everything works now as expected.
Tags
GridView
Asked by
Mikk
Top achievements
Rank 1
Answers by
Mikk
Top achievements
Rank 1
Share this question
or