How to rebind vew in viewmodel in KendoUI Mobile

2 posts, 0 answers
  1. Reggie Pangilinan
    Reggie Pangilinan avatar
    4 posts
    Member since:
    Oct 2009

    Posted 18 Sep 2013 Link to this post

    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

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

  2. Petyo
    Petyo avatar
    2436 posts

    Posted 19 Sep 2013 Link to this post

    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. 

    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top