The rows in a listView are not updating using Kendo MVVM

2 posts, 0 answers
  1. Marcel
    Marcel avatar
    2 posts
    Member since:
    Dec 2012

    Posted 30 Dec 2012 Link to this post

    Hi - I just posted a question regarding this on stackoverflow:

    http://stackoverflow.com/questions/14092516/the-rows-in-a-listview-are-not-updating-using-kendo-mvvm

    Basically I have problems with updating my observable source and seeing the changes reflected in a listView.

    I can add items to my javascript array which are directly shown in the listView (table with kendo-templates) but when I change properties of a single item in the array it does NOT get updated in this list.

    I tried creating observable objects of each item I put in the array but it still does not work.  (full code and details on stackoverflow..)

    How do I get this to work?

    Thanks


  2. Zachary
    Zachary avatar
    23 posts
    Member since:
    Feb 2013

    Posted 11 Jan 2014 Link to this post

    To follow up, you answered your own question on StackOverflow and it was very helpful.

    http://stackoverflow.com/a/14230938/610832

    Basically, you have to use .set() on the child object before the parent's change event is triggered by observable:

    _model.timeslots[index].set('expanded', true);
  3. Kendo UI is VS 2017 Ready
Back to Top