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

Is it possible to force a View to refresh it's values from the ViewModel?

0 Answers 152 Views
MVVM
This is a migrated thread and some comments may be shown as answers.
Benjamin
Top achievements
Rank 1
Benjamin asked on 24 May 2012, 09:10 PM
We have a situation where we've bound our view (HTML page) to our ViewModel. There is a grid in our view that is being populated, however it's visibility is bound to a function on our ViewModel called 'isListEmpty'. It appears that this function is being checked by the view at binding time (when the list is empty), but after we've refreshed our observable array, and the grid populates itself with data, the isListEmpty() function is never checked by the view, and thus the grid remains hidden. Is there a way to poke the View from the ViewModel such that it refreshes some or all of its values that are bound to the ViewModel?

No answers yet. Maybe you can help?

Tags
MVVM
Asked by
Benjamin
Top achievements
Rank 1
Share this question
or