knockout-2.0 Questions
11
Solved
I am using the select2 control, loading data via ajax. This requires the use of the <input type=hidden..> tag.
Now, I want to retrieve the selected text. (The value property in the data-bind...
Birck asked 6/11, 2013 at 14:24
5
Please consider this jsfiddle. It contains something along these lines:
<textarea data-bind="value: comment, valueUpdate: 'afterkyedown'"></textarea>
<br/><br/>
<span d...
Prinz asked 19/10, 2012 at 21:17
3
Solved
So i have a really weird problem with a knockoutjs click binding not getting attached to anchor tags. Other data-bind="" works but not the click binding.
Below you can see the HTML and part of the...
Furrier asked 15/5, 2012 at 11:10
3
Solved
Is it possible to use Knockout's if binding on more than one boolean?
Such as
<div data-bind="if: (property.aTrueValue && property.anotherTrueValue)">...
I've tried a lot of diffe...
Giacopo asked 9/3, 2013 at 5:22
4
Solved
I have a Single Page Application that uses knockout for the data binding. The CAApproval.html view in my single page application has an observeablearray named AllCertificates in the viewmodel code....
Gagnon asked 5/9, 2013 at 14:4
2
Solved
I'm right now building a custom Knockout.js binding to handle drawing of polygons. In this case the Knockout API only gives me a reference to a DOM object to access whatever it is I need to update....
Mistakable asked 28/2, 2014 at 22:10
2
Solved
I really like how Eric Barnard's knockout validation lib integrates with observables, allows grouping, & offers custom validator pluggability (including on-the-fly validators). There are a coup...
Chapiter asked 4/10, 2012 at 7:5
4
How to get second Tuesday of a given month or get third Thursday of a given month using moment js.
I tried finding a solution but was unsuccessful. I wrote it myself and posted the answer below a...
Chiro asked 12/7, 2017 at 11:12
10
Solved
i read many tutorials but i dont know how to do this, this is the input
input(type="text",name="price",id="price"data-bind="text: price,valueUpdate:['afterkeydown','propertychange','input']")
an...
Counterclockwise asked 11/6, 2013 at 15:51
5
Solved
i'm using jquery quicksearch to search a table that is being populated by knockout foreach loop.
the quicksearch element needs to be initiate after the foreach finishes.
I've tried several approach...
Drewdrewett asked 5/5, 2013 at 14:43
12
Solved
Another user suggested Knockout MVC to handle some AJAX posting issues. I read a little on it and I see it is a wrapper around Knockout JS. So I wonder what are the real differences between the two...
Check asked 23/7, 2012 at 18:10
2
Solved
Very often I have objects like this:
var objectToMap = {
Id: 123,
UserType:{
Id: 456,
Name:"Some"
}
};
When I need modify this object in user interface, I want to select from some list. Fo...
Pharmacopoeia asked 3/4, 2014 at 5:24
3
Solved
I'm wanting to format a date in knockout's template.
The date is currently being returned as
2013-07-04T00:00:00
I would like it to be displayed like
07/04/2013
Here is the binding I'm using...
Sawtoothed asked 3/7, 2013 at 18:42
4
Solved
I'm using KnockoutJS to iterate over an object, like this:
Now this all works. But the problem i have is that it sets the id of the button to just a number. So it looks like this:
<button...
Mabelmabelle asked 20/9, 2012 at 8:3
4
Solved
I am trying to create a custom binding for twitter boostrap popovers that references a template but I am having trouble with the binding part of the content inside of the popover once it has been c...
Urchin asked 11/2, 2013 at 22:21
4
Solved
I want to bind boolean value to select element using KO v2.1.0, but obviously it doesn't work as expected.
HTML code:
<select data-bind="value: state">
<option value="true&...
Fell asked 9/5, 2012 at 6:11
3
Solved
I'm attempt to establish a grid and update it with more records via JSON. In this simple example I am able to achieve the required functionality but I can only update / push one JSON record. I woul...
Gimble asked 1/4, 2012 at 20:21
3
Solved
I'm having a problem with knockout "checked" binding. It seems that "change" event at checkbox return old value, before it is updated(so if it was unchecked it will return false). I don't think tha...
Clarissa asked 2/7, 2012 at 13:46
3
Solved
Bearing in mind that similar questions have been answered here, I was wondering how one might go about having default text or HTML display inside a Knockout data-bind='foreach: list' whenever the l...
Profusive asked 31/5, 2013 at 19:54
2
Solved
I am trying to do headless testing of my knockout viewmodels. I purposely avoid dealing with any ui constructs in my viewmodel and leave the wireup to the html page.
This works great in Jasmine si...
Demulsify asked 26/6, 2012 at 15:4
3
Solved
I am working on a single page applications that has a bunch of hidden divs, binded (or is it bound?) to KnockoutJS with visible:. When page loads, they all momentarily flash on screen. I have tried...
Mikimikihisa asked 8/10, 2012 at 5:25
3
Solved
Original Question
Does any one have or know of a binding for knockout that would allow behavior similar to a for loop? I can make a foreach do what I want but it would be nice if I didn't have to ...
Oscillation asked 18/4, 2013 at 17:43
4
Solved
This is a follow-up to How can I bind a ko.observableArray of strings?
How can I bind an editable observable array of observable strings to a set of input boxes? I don't want to bind to an array o...
Hausmann asked 1/4, 2013 at 18:47
2
Solved
I have 2 values that I get from server A and B. I can only have one true at a time.
Again what I need is one of the radios to be checked at a time so one true value only.
var viewModel = {
...
Hatchway asked 28/4, 2013 at 4:13
3
Solved
Say I have a set of 3 radio buttons:
<div>
<label>
<input type="radio" name="Who" value="Myself"
checked="@isMyselfChecked" data-bind="checked: who" />
Mine
</label>
...
Susurrus asked 11/7, 2012 at 13:55
1 Next >
© 2022 - 2024 — McMap. All rights reserved.