I have tried the attached examples from the post http://www.telerik.com/community/forums/silverlight/treeview/editing-item-in-radtree-makes-it-dissappear.aspx. All the examples work well. If I provide
Text
="{Binding Name, Mode=TwoWay}" in the CellEditTemplate the value is changed automatically in the Object as well.
My Problem is as below.
I am paasing the updated object for saving. if all goes well then no problem but if there is some problem in saving (Some exception is return from the save functionality) then I want to again rollback to the old value in the tree and also in the object. In the Edited event if you look the Properties "OldValue" and "NewValue" both are getting changed because of the Text="{Binding Name, Mode=TwoWay}" . I think twoway binding should not change the "OldValue" property. It should only change the "NewValue" property.
Is there any workaround for getting the old value? I dont want to fetch again from database.
Regards,
Niranjan