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

DataForm "Soft Delete"

3 Answers 72 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 18 Jan 2012, 09:58 PM
Hi,

I was wondering if it is possible to setup the WPF data form to do a soft delete without removing the item "deleted" from the collection.  Thanks in advance for any advice/help.

Sincerely,

Jon

3 Answers, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 19 Jan 2012, 08:28 AM
Hi Jon,

 There is no such functionality in RadDataForm however I believe that you can bind the form to a special collection wrapping your original collection in order to add your custom delete logic.

Kind regards,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Jon
Top achievements
Rank 1
answered on 19 Jan 2012, 03:48 PM
Vlad,

Thanks for the reply.  We have found more cases than not for needing soft deletes recently.  Is there a good place I can request this as a feature?

Thanks,

Jon
0
Pavel Pavlov
Telerik team
answered on 20 Jan 2012, 03:20 PM
Hello Jon ,

I have talked to the team but they were pessimistic about the future of such feature. The general opinion is such problem should be solved at the data layer level rather than at the UI.  I believe the approach with custom collection or an intermediate proxy collection  is as close as we can get.

I am not sure about the practical purpose of such setup , but I may recommend to use an observable collection as source for RadDataForm. This way you can listen to the collection changed events of this collection and manage your original collection. In other words what you delete form the observable collection bound to the RadDataForm  will not be deleted from the original collection.

Kind regards,
Pavel Pavlov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
DataForm
Asked by
Jon
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Jon
Top achievements
Rank 1
Pavel Pavlov
Telerik team
Share this question
or