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
dependentObservable dependent with each other
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
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
 
jigjosh  
View profile  
 More options May 2 2012, 10:08 pm
From: jigjosh <jigj...@gmail.com>
Date: Wed, 2 May 2012 19:08:49 -0700 (PDT)
Local: Wed, May 2 2012 10:08 pm
Subject: dependentObservable dependent with each other
Dear All

    I am having following view model
    Item , Quantity, Rate and Amout
  Now need to give functionally so that if User Enter Rate then Amount
will calculate
amount  =  Rate * Quantity
if user enter Amount then Rate will Calulate
 Rate =  Amount/Quantity
Pl  help me how to manage this with knockout

Thanks
jignesh


 
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.
rpn  
View profile  
 More options May 2 2012, 10:20 pm
From: rpn <rnieme...@gmail.com>
Date: Wed, 2 May 2012 19:20:18 -0700 (PDT)
Local: Wed, May 2 2012 10:20 pm
Subject: Re: dependentObservable dependent with each other

This is a good case to use a writeable computed observable (
http://knockoutjs.com/documentation/computedObservables.html#writeabl...
 ).

Here is a sample:  http://jsfiddle.net/rniemeyer/qcnyr/


 
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.
End of messages
« Back to Discussions « Newer topic     Older topic »