Knockout is a JavaScript library for dynamic HTML UIs using the Model-View-View Model (MVVM) pattern.
6
votes
1answer
62 views
Unable to bind values after inserting table rows with jquery
I have this in my html:
<table class="dataTable" id="CADataTable">
<thead>
<tr>
<th> Type</th>
<th> Name</th>
<th> ...
1
vote
1answer
17 views
Data bind JSON model on an event
I've just started playing around with KnockoutJS and I'm a little stumped. Here's what I want to do.
I have an asmx method that returns a JSON string, which is the following objects deserialized ...
0
votes
2answers
20 views
how to show busy indicator when one click on a item of a list box having more than 6000 items
In one of my MVC3 projects using jquery with knockoutjs, where I am using knockoutjs to bind a List Box.
When the list box has a few items, a click on an item immediately selects the item, but when ...
0
votes
1answer
14 views
C# POCO to JS Object dynamically
I am looking at MVVM with Knockout.js. One of the things I would like to achieve is to "easily" get my code behind MVVM POCO to the client as a corresponding JS object.
The idea being that:
a) If I ...
0
votes
1answer
20 views
Knockout.js update values from mysql database
Let's assume that I have 3 computers that write to a mysql database based on whether they are online or offline every 5 minutes.
I display this information on a website in a simple html table and ...
2
votes
1answer
15 views
Knockout validation message based set in the validation function
I want to set the message to display in the validation function of knockout similar to whats going on here: Knockout Validation Plugin Custom Error Message but without async.
Heres what ive tried, ...
0
votes
1answer
23 views
Preventing duplicate items in a knockout.js observable array
I run a timed loop which fetches data asynchronously from the server and updates an observable array. I thought that this would prevent dups but it doesn't seem to. How can I prevent adding ...
3
votes
1answer
32 views
KnockoutJS - Sending a form containing the value of a javascript object results in a timeout
I have a problem that occurs when I try to send a form, if a particular field type is present, the page returns a time out.
I'm using KnockoutJS's mapping plugin to map an object coming from the ...
0
votes
1answer
20 views
knockout visible property data binding
Not sure what's up with this, but the visible property does not seem to work using foreach.
This works (displays Testing 2 only):
<tbody data-bind="foreach: people">
<tr>
...
-1
votes
0answers
10 views
Wijmo grid and knockout observableArray bound to data option not working for me
The wijmo grid setup to get its data from a knockout observableArray in the following fiddle
http://jsfiddle.net/t316/K3GMR/7/ is not initializing itself properly, i.e. you see no grid.
This is ...
1
vote
1answer
14 views
Adding an item to an observable array from a popup
Ive been playing around with Knockout and i cant get my head around how to handle this scenerio.
Basically i have a list of employees and you can choose a position for that employee from a select ...
0
votes
1answer
17 views
Knockout nested viewmodel
I have a viewmodel setup that is as follows:
<div id='stuff'>
<div id='i_need_this'>
<input type='checkbox' data-bind="checked: enabled" />
</div>
</div>
...
0
votes
2answers
26 views
KnockoutJS - toJSON does not work in computed function
I'm using the knockout mapping plugin to map an object from my server.
I want to resend this object, therefore, I need in the end, to convert this object into string. I use the knockout function ...
2
votes
2answers
20 views
Custom Binding Handlers With Knockout and RequireJS
I'm having an issue applying custom binding handlers when using knockout with requireJS. Basically, in the past I've included a global binding-handler js file that contains all my custom bindings. Now ...
0
votes
3answers
33 views
Accessing external observableArray (KnockoutJS)
The goal
Access external observableArray to change one of its properties.
The problem
There is two lists in my application. One of these lists consists in store items that I have added to it — very ...