RadGridView no visual refresh when using EditItem and CommitEdit?

0 Answers 122 Views
GridView
Rob A.
Top achievements
Rank 2
Iron
Iron
Veteran
Rob A. asked on 28 Jun 2021, 03:16 AM

I was following the example here: 

https://docs.telerik.com/devtools/wpf/controls/radgridview/managing-data/how-to/edit-item-outside-gridview

The underlying values do change but the grid visual values don't reflect the changes?

I want to avoid using a .Refresh as that can trigger all kinds of other issues.

What am I missing?

Cheers, Rob.

Rob A.
Top achievements
Rank 2
Iron
Iron
Veteran
commented on 29 Jun 2021, 01:46 AM | edited

I worked around this problem by using the INotifyPropertyChanged ... Rebind() works also but because the entire GridView is refreshed it triggers a series of events that I would have to take into account and filter out. It's unfortunate that INotifyPropertyChanged is the only way to make this work.
Dinko | Tech Support Engineer
Telerik team
commented on 30 Jun 2021, 11:02 AM

You are on the right path. Using the INotifyPropertyChanged interface you can notify the UI that a property value has been changed from the code. Otherwise, the RadGridView won't reflect the changes. The purpose of the interface is to avoid refreshing the binding when a property value is changed.

No answers yet. Maybe you can help?

Tags
GridView
Asked by
Rob A.
Top achievements
Rank 2
Iron
Iron
Veteran
Share this question
or