when save is clicked, it works for edits, but not deletes.
The deleting is being done with ICommand deleteCommand = RadGridViewCommands.Delete;
Which is tied to a button.
Is there a command to commit all changes, including adds and deletes?
While on the subject does anyone have a solution to prevent the user from navigating away from the page while there are uncommitted edits/deletes without a warning?
4 Answers, 1 is accepted
DomainDataSource.SubmitChanges() should send to the server all adds, edits, deletes, etc. Could you please send a sample application that demonstrates this problem?
Regarding your second point, the key is the HasChanges property of the DomainDataSource. If you're using Silverlight navigation, you need to handle the Navigating event of your Frame, and cancel it if the HasChanges property is set to true. Alternatively, you can handle the onbeforeunload event of the HTML page that contains your Silverlight control and again return false if the HasChanges property equals true.
Yavor Georgiev
the Telerik team

An unhandled exception ('Unhandled Error in Silverlight Application
Code:4004
Category: ManagedRuntimeErrror
Message: System.ServiceModel.DomainServices.Client.DomainException:
And error occured while submitting changes on the DomainContext of type
and that is all I can see in the popup which then wants to start a new debugger.
I am new to this, so I am not clear what code I need to add to capture the exception so we can get better debugging information.
Could you please open a support ticket and send us your solution?
Greetings,Yavor Georgiev
the Telerik team
