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

The rows in a listView are not updating using Kendo MVVM

1 Answer 44 Views
MVVM
This is a migrated thread and some comments may be shown as answers.
Marcel
Top achievements
Rank 1
Marcel asked on 30 Dec 2012, 08:43 PM
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


1 Answer, 1 is accepted

Sort by
0
Zachary
Top achievements
Rank 1
answered on 11 Jan 2014, 08:49 PM

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);
Tags
MVVM
Asked by
Marcel
Top achievements
Rank 1
Answers by
Zachary
Top achievements
Rank 1
Share this question
or