1

grid not adding columns when bound variable changes

asked 2015-03-25 21:11:01 +0800

robertkaren gravatar image robertkaren
77 7

updated 2015-03-25 21:37:29 +0800

Hi, I'm still new to MVVM. Can someone explain to me why in my example (http://zkfiddle.org/sample/1prcftd/1-grid-not-adding-columns-when-binding-vars-add-items-to-List) when you press the button at the bottom and the bound variables are modified, columns should increase from 5 to 14 in both grids, but they dont change. The other bound variables of the page change as expected. Thanks for any help.

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-03-26 07:00:58 +0800

chillworld gravatar image chillworld flag of Belgium
5367 4 9
https://github.com/chillw...

You have to notify that your model is changed because you have added new items.

Updated fiddle.

Greetz chill.

link publish delete flag offensive edit

Comments

for other newbies, look up docs on @NotifyChange. Thanks again!

robertkaren ( 2015-03-26 16:45:20 +0800 )edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2015-03-25 21:11:01 +0800

Seen: 10 times

Last updated: Mar 26 '15

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More