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

How to rebind vew in viewmodel in KendoUI Mobile

1 Answer 24 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Reggie Pangilinan
Top achievements
Rank 1
Reggie Pangilinan asked on 18 Sep 2013, 12:41 PM
I have a "view" that is binded to a viewmodel, what i want is reset that viewmodel whenever i click the backbutton and then re-initialize/re-bind it again so the values are cleared.

I followed the documentation for MVVM
http://docs.kendoui.com/getting-started/mobile/mvvm

and i used the data-show attribute to call a function that clears my viewmodel but it doesnt work. 



1 Answer, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 19 Sep 2013, 01:51 PM
Hi Reggie,

instead of changing the whole view model (which is not supported), you may bind to a certain field, and update only that field using the set method. 

Regards,
Petyo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
General Discussions
Asked by
Reggie Pangilinan
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Share this question
or