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:

    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?


  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.

    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);
Back to Top