I have a problem with canceling edit mode in teleriks RadGridView. After inovking CancelRowEdit command for my radgridview edit mode stops, but item in row does not return to previous values...
Thanks in advance
Mehri
2 Answers, 1 is accepted
0
Accepted
Dimitrina
Telerik team
answered on 06 Jul 2011, 08:55 AM
Hi Mehri,
The behavior that you are experiencing is the expected one. As your view model implements IPropertyChanged, once a value in the cell is changed the setter of the related property is called and the data is changed.
In order to be able to cancel the edit, your object needs to implements IEditableObject interface. You may find a detailed explanation about how to implement it in this post. There is a sample application available as well.
I hope that this will resolve your problem. If you have any further questions, please do not hesitate to contact us.
Best wishes,
Didie
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!