Declined
Last Updated: 18 Oct 2021 13:59 by ADMIN
Лебедь
Created on: 15 Aug 2013 11:32
Category: Data Source
Type: Feature Request
4
revert observeble
I need way to revert all changes for observable view model
3 comments
ADMIN
Ianko
Posted on: 18 Oct 2021 13:59

Hello,

There observable does not store states so that it could be reverted to some previous state and bring back previous values to its fields. If reset is required, you should reset the fields the same way Zachary is doing. 

Regards,
Ianko
Progress Telerik

Remote troubleshooting is now easier with Telerik Fiddler Jam. Get the full context to end-users' issues in just three steps! Start your trial here - https://www.telerik.com/fiddler-jam.
Zachary
Posted on: 26 Aug 2013 18:09
This was a requirement for my application as well. Since there is no way to revert a model, I added a function to the model called "reset" that simply does this.set('fieldOne', null) for each item in the model.
Kevin
Posted on: 26 Aug 2013 15:58
The request to update an observable object with a JSON object would partially help with this.