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

OnEditEnded PropertyGridEditEndedEventArgs OldValue and NewValue always have old values

6 Answers 67 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
Greg Horvath
Top achievements
Rank 1
Greg Horvath asked on 26 Jan 2015, 10:39 PM
When OnEditEnded is fired the e.OldValue and e.NewValue don't seem to have the correct value. They both always have the old value. I need to be able to see if the value has changed to update the a dirty data flag in my application. Is there any way to do this? Thanks

6 Answers, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 29 Jan 2015, 06:11 PM
Hello,

I have prepared a sample test project, but I did not have any success in reproducing this behavior. I am attaching it for your reference. Can you please confirm whether you can notice any related difference between your approach and mine?

Regards,
Ivan Ivanov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Greg Horvath
Top achievements
Rank 1
answered on 30 Jan 2015, 02:04 PM
This approach is essentially what I am doing and I am seeing the same behavior in your sample project. I select the first row in the grid view, then go to the Name property in the property grid. I change the value from "Liverpool" to "Test" and in the event handler the old value still says "Liverpool". You can see this in the immediate pane in the screen shot below.


0
Greg Horvath
Top achievements
Rank 1
answered on 30 Jan 2015, 02:06 PM
Looks like my pasted image referenced in last reply did not show up. It is attached.
0
Ivan Ivanov
Telerik team
answered on 04 Feb 2015, 01:45 PM
Hi,

Please excuse me for the delayed reply. I am afraid that I am still not able to reproduce the issue. The only approach that results in the same OldValue and NewValue on my side is when the edited property is not changed. I guess that I am missing something, so I am attaching a video

Regards,
Ivan Ivanov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Greg Horvath
Top achievements
Rank 1
answered on 04 Feb 2015, 05:36 PM
I noticed from your video that your navigating using the mouse only. E.g. clicking the next cell when you finished editing. The issue appears to only happen if you tab off the current cell being edited. 
0
Ivan Ivanov
Telerik team
answered on 05 Feb 2015, 07:27 AM
Hi,

You are right. Tabbing out results in raising the event with wrong arguments. I am adding 1000 Telerik points to your account in accordance to this bug report. We will do our best to fix it with the incoming Q1 release.

Regards,
Ivan Ivanov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
PropertyGrid
Asked by
Greg Horvath
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Greg Horvath
Top achievements
Rank 1
Share this question
or