If you're able to show us the code that does the update, we can
probably identify the issue!
Steve
if you want to update the observable such that the ui updates you
should do this:
viewMode.productid(viewModelData.productid);
>>
>> I think you're right in that I'm replacing the entire property with a
>> new one. In this case, from an observable integer to a plain integer.
>>
>> I have a feeling I'm going be saying "duh Kevin!" pretty soon.....
>>
>> Thanks guys!
>>
>> On May 6, 3:51 pm, Steven Sanderson <ste...@stevensanderson.com>
>> wrote:
>>
>>
>>
>>
>>
>>
>>
>> > My guess is that your integer property isn't actually an observable,
>> > or perhaps when you are updating it, you're replacing the entire
>> > observable with a different one.
>>
>> > If you're able to show us the code that does the update, we can
>> > probably identify the issue!
>>
>> > Steve
>>
>> > On 6 May 2011, at 20:41, Kevin King <kevin5...@gmail.com> wrote:
>>
>> > > Ah yes, I am.
>>
>> > > I had an issue where i was making an ajax call, updating the value of
>> > > a property on the viewModel, but it wasn't updating the UI.
>>
>> > > It was a simple integer observable value.
>>
>> > > Is there another way to update it? Or should i completely be
>> > > unneccessary?
>>
>> > > Thanks,
>>
>> > > Kevin
>>
>> > > On May 6, 1:52 pm, rpn <rnieme...@gmail.com> wrote:
>> > >> Do you happen to be calling ko.applyBindings multiple times?
--
-barkmadley
sent from an internet enabled device
more information here:
http://knockoutjs.com/documentation/observables.html#reading_and_writing_observables