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

Calculated field does not update when parent field is changed

1 Answer 67 Views
MVVM
This is a migrated thread and some comments may be shown as answers.
Russell
Top achievements
Rank 1
Russell asked on 20 Apr 2015, 05:13 PM

I am using Kendo MVVM with a hierarchical view model. I have an array of items, and each has sub-items. I have a setting at the root level which determines what sub-item is selected for each item (based on its index).

All of my data binds correctly, but when I 'set' the selected item index at the root level, the calculated properties on the items are not getting updated.

The following code demonstrates the issue:

http://jsfiddle.net/rmorrise/yqp5mke2/5/ 

 

What is going on here?

 

1 Answer, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 22 Apr 2015, 02:22 PM
Hi,

the parent().parent() approach does not build a dependency. Please check an alternative one.

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