Knockout is a JavaScript library for dynamic HTML UIs using the Model-View-View Model (MVVM) pattern.
0
votes
0answers
4 views
How to route asp.net mvc action using Sammy.js and Knockoutjs?
I'm trying to follow a tutorial in Knockoutjs, I'm currently working on the single page application part of the tutorial and I'm trying to make a client-side navigation using Sammyjs. But currently ...
0
votes
1answer
18 views
Knockout.js JqueryUI Autocomplete Binding - Return the Object instead of the value
I'm using a nice custom binding to populate an JQueryUI auto complete, but I want to customize it to return the Item object, which I can then push to a different array.; Could anyone shed any light on ...
2
votes
0answers
18 views
Knockout, Require, Sammy and a view model for each page – how do I make it work?
I have a KO app and each of my pages has a separate view model that handles all the actions required on that page (load, add, edit, delete, etc). I've managed to split the code up into multiple ...
-1
votes
0answers
19 views
Bind html form when data source changed with knockout.js [on hold]
how can i change the data source such as webservice or xml or java script array and tell to my function one of type of these data srouce changed my form call ko.applybinig and content changed . i ...
0
votes
0answers
17 views
Best way to related models
I am mapping two related models by storing the primary key of related model in the first and then computing the actual model at runtime. This cause my model to access the view-model list. Is there any ...
2
votes
1answer
28 views
Get computed value from two observable arrays
I read a lot of threads and there isn't enough information how can I compute two observable arrays and track add/remove on them and update computed observable, because now computed just updates once ...
0
votes
1answer
16 views
Troubles with knockoutjs binding
I'm new to knockoutjs, and my bindings are not working. Nothing is displayed.
HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" ...
1
vote
1answer
15 views
stringTrim Knockout Utils not working when bundling
When I bundle my knockout js files using ASP.NET MVC 4 and run my application in release mode (debug="false") the knockout utils functions are not working.
I'm trying to use:
if ...
2
votes
1answer
24 views
KnockoutJS - observables in nested templates
I have implemented a simple spa with knockout js, where you can navigate between several pages, each page presenting a view model. The menu is a 2 level menu, therefore I have main pages and sub ...
0
votes
1answer
27 views
KnockoutJS: Using 'html' binding, new elements not binding
I have a view model which contains a ko.observable representing the conent of a div, like so:
function claimContainerViewModel(elem, api) {
this.content = ko.observable('<somecontent>');
}
...
1
vote
1answer
15 views
Show white spaces in select combobox that is filled with knockout js binding
I would like to be able to fill a HTML select element with a knockout binding. Some of the option texts include white spaces and I'd like to show them in the dropdown.
In pure HTML this can be ...
0
votes
2answers
24 views
Knockout Click Bindings in Jquery Dialog
I am using a knockout.js view model on a page and everything works properly except for the click bindings that are in a div which I have set to a jquery dialog
here is the div
<div ...
0
votes
0answers
40 views
Observablearray length evaluating to 0 despite having data when sorting
In my view, I am displaying the length of an observableArray-
My Certificates (<span data-bind="text: allCertificates().length"></span>)
If I sort the observableArray using ...
0
votes
1answer
19 views
KoGrid: Default sorting not working
As part of koGrid 2.1.1 I was not able to make the default sorting to work, meaning that if you want your grid to be sorted by a specific column/direction you won't get the expected behavior. Default ...
1
vote
0answers
32 views
Templates and validation - model().isValid for selected child view-model valid (ignore isValid() for hidden view-models)
Using a modified version of Knockout.js wizard validation on each step I plan to have a similar step-by-step wizard.
On the PaymentModel view-model step it has two child view-models (payment1Model ...