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

How to refresh the Grid after RowEditEnded

1 Answer 782 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Alexandre
Top achievements
Rank 1
Alexandre asked on 30 May 2018, 03:44 PM

Hi, I'm using a RadGridView and I call a RowEditEnded function to:

Edit all columns when the first column value is 1, but after I changed the columns values the Grid values are not updated in real time.

My simple code is:

            AreaCoeficienteEscoamento updatedItem = e.Row.Item as AreaCoeficienteEscoamento;
            updatedItem.Area = 333;
            updatedItem.Coeficiente = 333;
            // How to update and refresh the table values?

Thks!

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 04 Jun 2018, 08:27 AM
Hello Alexandre,

Generally in WPF, when you update a value of a model and want this change to be reflected in the UI, you will need to manually raise a PropertyChanged event. In your case if you don't do this you can try it in the AreaCoeficienteEscoamento model. Basically, you can implement the INotifyPropertyChanged interface and raise the event in the setter of the properties. If this doesn't help I would suggest you to open a new support ticket from your telerik.com account and send an isolate version of your implementation there.

Regards,
Martin Ivanov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
GridView
Asked by
Alexandre
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or