knockout-2.0 Questions
3
Solved
Well essentially I'm trying to populate a Bootstrap template via Knockout and a JSON object.
Bootstrap scaffolding:
<div class="row-fluid">
<div class="span4">
<h1>App Title&l...
Martinmas asked 25/8, 2012 at 19:6
3
Solved
I'm using Durandal, which in turn leverages off of Knockout.
I want to be able to Change validation lengths dynamically
Fiddle
The fiddle seems to be behaving slightly different than my "work...
Velure asked 26/6, 2013 at 7:14
2
Solved
I have a knockout template:
<script id="draggableHelper" type="text/x-jquery-tmpl">
<div class="draggableHelper">
<span data-bind="text: Name"></span>
</div>
</...
Preoccupy asked 9/12, 2013 at 14:29
3
Solved
I'm getting a "SCRIPT5002: Function expected" that only happens in IE. I'm currently testing against version 9. It happens when I use a previously defined computed observable inside of another comp...
Trouveur asked 1/3, 2013 at 19:45
6
Solved
I am using Knockout.js as a MVVM library to bind my data to some pages. I'm currently building a library to make REST calls to a web service.
My RESTful web service returns a simple structure:
{
...
Shot asked 11/5, 2012 at 16:21
1
Solved
The table with the data-bindings currently looks like below:
Source Calls ChargeableCalls
Car Insurance
08434599111 3 2
08934345122 2 1
Home Insurance
08734599333 3 2
08034345555 2 1
The desir...
Wreathe asked 19/3, 2015 at 15:38
5
Solved
Is it possible in knockout to get the current value of an observable within a subscription to that observable, before it receives the new value?
Example:
this.myObservable = ko.observable();
this...
Arissa asked 10/10, 2012 at 15:25
6
Solved
So yes I can subscribe to an observable array:
vm.myArray = ko.observableArray();
vm.myArray.subscribe(function(newVal){...});
The problem is the newVal passed to the function is the entire arra...
Weathered asked 4/1, 2013 at 0:41
3
Solved
I have a viewModel like this:
var viewModel =
{
firstName: 'Fred'
}
and a text box bound to it like this
<input data-bind="value: firstName" >
I was under the impression that this ...
Forby asked 10/9, 2013 at 5:36
2
Solved
I'm trying to bind a ko.observableArray of strings to a template, but I'm unable to get the template to pick up changes in the strings inside the array.
If I bind a set of objects instead of a set...
Precocity asked 1/4, 2013 at 16:24
8
Solved
In my view model I have a IsMale value that has the value true or false.
In my UI I wish to bind it to the following radio buttons:
<label>Male
<input type="radio" name="IsMale" value="...
Jandy asked 12/4, 2012 at 15:39
1
Solved
I needed to create a Knockout bindingHandler which would format the amount to comma separated numbers. After a little searching I found the solution here (Thanks to @nemesv for the solution) which ...
Perversion asked 22/5, 2014 at 9:53
1
Solved
When binding values to a drop down list and using knockout validation, the error message seems to always display even if my knockout validation settings say messagesOnModified: true.
HTML
<inp...
Eurhythmic asked 2/5, 2014 at 18:28
1
Solved
I'm building a very number-heavy app in KnockoutJS and I want to have the ability to format large numbers so that they're comma-seperated and nice on the eye (xxx,xxx).
As you'll see from the fidd...
Inflammation asked 20/4, 2014 at 9:9
2
Solved
I'm new to Knockout and I'm building an app that's effectively a large-scale calculator. So far I have two instances of knockout running on one page. One instance is working perfectly fine, however...
Septic asked 15/4, 2014 at 13:38
1
Solved
Is it possible to use || operator in disable like this:
data-bind="click: createSubActivity, disable: isDeliveryHistory || isTimeAndMaterialLocked"
I have tried, but it seems like it doesn't wor...
Appear asked 31/3, 2014 at 10:0
2
Solved
Let's start with a thanks in advance :)
OK, So I'm trying to load/map hierarchical TypeScript/KnockoutJS typed classes from matching JSON data using the knockout.mapping plugin, the hierarchy can ...
Tolle asked 9/7, 2013 at 16:57
2
Solved
I am trying to use knockout validation lib to validate an array of objects. It is not straightforward to me how to form a validation group for an array of observables. The only way I managed to mak...
Ridenhour asked 7/6, 2012 at 17:7
2
Solved
I have array of limits, and checkboxes for enable/disable limits. But checkboxes do not work
jsFiddle
function Limit(start, end)
{
var that = this;
this.start = start;
this.end = end;
this....
Rectocele asked 25/11, 2012 at 20:41
1
Solved
I am considering to use either Knockout or Angular or Backbone for my personal project. I need to build some bigger, longer-running client-side interactions to go with my server-side stuff.
...
Optician asked 26/9, 2013 at 15:21
2
Solved
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.obs...
Conga asked 15/3, 2012 at 8:9
1
Solved
Currently the Knockout-Validation plugin automatically add this HTML element to my web page:
<span class="validationMessage">This field is required.</span>
I want to change the "Thi...
Muldoon asked 18/9, 2013 at 12:45
2
Solved
Does the generated view exists right after you call ko.applyBindings() or does the scaffolding happen asynchronously?
Thanks!
Ba asked 16/1, 2013 at 15:15
1
I want to try the simpleGrid in a HotTowel project. When it came to:
this.gridViewModel = new ko.simpleGrid.viewModel({
data: this.items, ....
it threw an exception:
Unable to get property '...
Amid asked 29/8, 2013 at 10:1
1
Solved
I am using knockout validation plugin and its working fine but i have a little problem , I want to make the validation span a little but more prominent by using css , and i only want to insert the ...
Bartonbartosch asked 27/8, 2013 at 7:3
© 2022 - 2024 — McMap. All rights reserved.