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

Changes in data items not propagated into listview items

1 Answer 52 Views
ListView (Mobile)
This is a migrated thread and some comments may be shown as answers.
Norbert
Top achievements
Rank 1
Norbert asked on 23 Feb 2013, 04:22 PM
I'm trying to bind listview items containing checkboxes to observable array. Changes made in checking/unchecking checkboxes in listview are correctly propagated into data items. But when I try to change programatically the data in the array the listview is bound to the change is not propagated back to checkbox.
Here's a simple jsfiddle. The button "Toggle" should change the array data. The view title demonstrates that the changes in checkboxes are correctly propagated into array.

Am I missing something?

Thanks for help.

1 Answer, 1 is accepted

Sort by
0
Norbert
Top achievements
Rank 1
answered on 24 Feb 2013, 09:10 PM
I was able to find the problem.
I was not using set method for changing observable array values.

Here's updated jsfiddle http://jsfiddle.net/norol/UcEqS/4/
Tags
ListView (Mobile)
Asked by
Norbert
Top achievements
Rank 1
Answers by
Norbert
Top achievements
Rank 1
Share this question
or