Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion It is not possible to rebind ViewModel when using internal foreach templates?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Domenic Denicola  
View profile  
 More options Sep 25 2012, 12:34 pm
From: Domenic Denicola <dome...@domenicdenicola.com>
Date: Tue, 25 Sep 2012 09:34:17 -0700 (PDT)
Local: Tues, Sep 25 2012 12:34 pm
Subject: Re: It is not possible to rebind ViewModel when using internal foreach templates?

Respectfully, this is horrible. Please at least throw a very loud error
saying this is not supported. We've wasted a couple days before narrowing
it down to a few unfortunate failing test cases:

http://jsfiddle.net/QXJVb/1/
http://jsfiddle.net/QXJVb/2/

This is really unfortunate and will force us to build a layer on top of
Knockout that wraps every view model in a fake view model containing a
single observable that can then be replaced for re-binding purposes.

Is there a GitHub issue for this we can vote on?

On Wednesday, March 28, 2012 5:39:27 AM UTC-4, Michael Best wrote:

> "Re-binding" using a second applyBinding call isn't supported. But you
> can wrap your view model in an observable and update it to "re-bind"

> -- Michael

> On Mar 27, 10:22 pm, Pekka Ylenius <ylen...@gmail.com> wrote:
> > Hi,

> > I have my ViewModel specified on server side and I'm using mapping
> plugin
> > to generate ViewModel for Knockout. That is why it is not easy for me to
> > update new values to page without rebinding whole page.

> > After user clicks save I would like to to rebind whole page without
> > reloading.
> > This works fine when binding everything else but lists and using jQuery
> > templates for lists.

> > Is there any possibility to make rebinding work? Or can I somehow clean
> old
> > binding before rebinding?

> > Now rebinding (not)works bit differently for all browsers.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.