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

How to update RowDetails after editing a row cell value?

1 Answer 104 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Markus
Top achievements
Rank 1
Markus asked on 20 Mar 2014, 09:38 AM
Hi,

I'm pretty new to Telerik WPF programming, so please forgive me any dumb questions.

I have a GridView control which displays its data through a ValueConverter which retrieves the data from a complex data structure in memory. I use a DataTemplate which displays additional information from the complex data structure using the same ValueConverter.
This works just fine.
If I now edit a cell value in my GridView, the data gets correctly updated in my data structure, but the value displayed in RowDetails still shows the old value. Even if I close and reopen the RowDetails, the old value remains visible.
I guess this is because of this:
www.telerik.com/help/wpf/radgridview-row-details-programming.html
LoadingRowDetails - the LoadingRowDetails event is raised immediately after the FrameworkElement has been loaded from the Row DetailsDataTemplate. It is raised the very first time the row details are about to be shown. Once this event has been fired, it will never fire again for that row. However, if the row is recycled and then realized, it starts its "life" again, this event will be fired again the first time the details are about to be shown.

Do I need to manually fire the LoadingRowDetails event to get the data updated in the RowDetails? Any other thoughts how to do this? Any code examples or internet pointers how to do this?

Thanks for your help.

Best regards,
Markus

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 24 Mar 2014, 08:34 AM
Hello Markus,

Does your bound business object implement the INotifyPropertyChanged interface?
In order to have RadGridView (in details or not) update the displayed values upon a change in the bound data, your business object should implement this interface. Then, once a property's value has changed, the change will reflect in the UI.

Regards,
Didie
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
Tags
GridView
Asked by
Markus
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or