I need to clear the selection from a <select> element. I've already read such posts as Knockoutjs clear selected value in combobox and have tried the accepted answers, but those solutions don't seem to be working (don't know if some...
I have a viewmodel like     AppViewModel = {     agent : ko.observableArray([ {         name : 'test',         age  : '23'                  }])          };   My json data comes like  {"agent":[{"name":"john",&#...
I have the following code:  // First we define our gift class, which has 2 properties: // a Title and a Price. // We use knockout js validation to ensure that the values input are suitable/  function Gift(item) {     var self = this;     self.Title =...
When calling the length of any observable in the customerOverview view model I receive a length of zero. There is data present in the observables as the bindings update with data, however the length remains at 0. The base view model, 'CustomerCen...
I have an observableArray in my view model. After creating the vm I wish to completely replace the data the observableArray. Here's how I'm doing it:  //Initial Setup var vm = {}; vm.roles = ko.observableArray([]); ko.applyBindings(vm);    //...
Can you guys help me debug why when I call replace it is not being reflected upon the UI. The ****** in the checkout function is where I call replace. In the index I am looping through my observableArray to display the items.   Current the UI will on...
We have a view using Razor and Knockout.js that displays a form. Part of the form asks the user to enter a list of values, and we're using a ko.observablearray to keep track of them. This list is represented as a bunch of text boxes, one per valu...
I am trying to solve the problem where I have a two way computed observable and want that parsed into an observable array and have that change event bubble up. The problem is that the it appear to not be notifying subscribers.  Its best shown in jsfi...
Background  I'm trying to build a gradebook app, mostly as a learning exercise. Currently, I have two models, a student, and an assignment. I decided to store all score-related information inside the student rather than with each assignment. Perh...
I have an observableArray with testsuites that I want to filter according to text in a search field. The filtering updates after every key stroke, so I am searching for the most efficient method.  Check out this JS-fiddle for a simplified version of...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.