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

RadGridView doesn't refresh data

1 Answer 185 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Julien
Top achievements
Rank 1
Julien asked on 13 Aug 2010, 09:31 AM
Hi!

Here is the situation:

I've a RadGridView, the datacontext is the code behind. So ItemsSource is setted to a "List<MyCustomObjects>", all works at this level.

After that, I've a zone with a lot of textbox that are bound to the gridview(datacontext is the radgridview, binding CurrentItem.myField, mode twoway) and a zone with only labels that is exactly bound the same way. 

When I change line, my values are updated in labels and textbox, so it works great. 

If I edit one field directly in the RadGridView, labels and textbox are updated directly when the cell lost the focus

The problem now:
Now, if I edit the field in the textbox, when I lost focus, labels are updated but not the radGridView.
It appears the radGridview have updated values but doesn't refresh the display, if I reorder data or start the edit of the cell, the data is correct.

Then, is this a bad configuration of the radGridView? Wrong datasource?( List<MyCustomObject>) bug? Feature?

Thank you!

We really need this as fast as possible because it's one of the key feature we use in telerik.

1 Answer, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 16 Aug 2010, 08:29 AM
Hi Julien,

Does your business object class implement INotifyPropertyChanged interface?

I have attached a sample project which demonstrates the approach.

Greetings,
Veselin Vasilev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Julien
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Share this question
or