New Posts New Posts RSS Feed: IEditableObject and cancelling changes...
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

IEditableObject and cancelling changes...

 Post Reply Post Reply
Author
jsobell View Drop Down
Groupie
Groupie
Avatar

Joined: 02-Apr-2009
Location: Australia
Posts: 80
Post Options Post Options   Quote jsobell Quote  Post ReplyReply Direct Link To This Post Topic: IEditableObject and cancelling changes...
    Posted: 10-Jun-2009 at 3:58pm
We're using a DataForm to edit an instance of a row in a BindableCollection, and I have a question regarding the suggested edit method due to some unexpected behaviour.
We have a command on the listbox that calls a child form, passing in the instance of the entity from the collection.  This form displays the entity in a (SL3) DataForm, so we start edit mode.  Changes to this entity are then reflected as we edit it in the underlying listbox (obviously, as it's databound).
However, if we then click Cancel in the dataform the changes are not reflected in the bound control.
My guess is that the implementation of IEditableObject.EditCancel does not call any property changed events, so the bound components don't realize the properties have changed back. Could this be correct?

Cheers,
  Jason

Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post Posted: 10-Jun-2009 at 4:45pm
Yes, you're correct, the CancelEdit does not currently raise any property changed events.  We'll open a defect report to address this.  Thanks for bringing it to our attention.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down