All Questions
Tagged with knockout.js mvvm
483
questions
0
votes
1
answer
64
views
Knockout Observable not updating on Modal DOM/UI
Knockout observable value not updating on bootstrap Modal. In debug I can see that the value have been successfully added to observable. It just not updating/appearing on the modal DOM.
self....
0
votes
0
answers
105
views
baguetteBox - lightbox not working inside knockout js foreach binding
I try to preview image using baguetteBox.run when clicking an image.
The problems are, whenever I click image src inside foreach binding. It redirect to new File src page (File: C/(file url) instead ...
0
votes
2
answers
43
views
Display an array with string list vertically knockoutjs
I got self.PatrolList = ko.observableArray() which contains:
//value
0: {DateAdd: 'Tuesday, 01 November 2022', sessionList: Array(2)}
1: {DateAdd: 'Wednesday, 02 November 2022', sessionList: Array(4)}
...
0
votes
1
answer
21
views
How to do multiple bind in KnocckOut Js
I am trying to display the paper clip icon based on condition (Either it should be pop or non pop or both ) which is working fine , but i want to color the paper clip icor based on one more condition ...
0
votes
1
answer
317
views
Can I integrate React into a Knockout JavaScript app?
I've been building an application in my spare time, its backend is C# and I use Knockout js for the front end, to be honest its an app I use out side of my main job for learning purposes etc, I may ...
1
vote
0
answers
87
views
When an element is selected from the list, I want my other list to be filled
I am writing a web project, I want my bottom list to be filled when an element is selected from my top drop-down list, how can I do that? I need to do this in the method.
<div>
...
0
votes
1
answer
38
views
Why are the replaced values in ko.ObservableArray not updating my view?
I'm trying to make an overview page for a simple webshop. The client can go to the next page, but this will not reload the whole document, it just triggers a fetch for the next set of products.
I'm ...
0
votes
1
answer
622
views
Select field is not showing the dropdown values
Can anyone please help me, I am stuck with this past two days. I am new to Knockoutjs / viewmodel. I am trying to understand how bind the data to the dropdownlist. The dropdown values needs to be ...
0
votes
2
answers
47
views
How to duplicate a data-bound function in a view element to which the un-editable script does not apply bindings?
I am a beginner to knockout and I work on a platform where only the VIEWs (called Templates) are editable - ViewModels are not editable nor even readable (except for reading the minimized code in dev ...
1
vote
0
answers
47
views
How to get the dynamic change of main modal from JS for checkbox in partial view .cshtml file (Knockout js)?
I have a main view _New.cshtml and from this view I am calling a partial view _Contact.cshtml.
_New.cshtml
Here I have a checkbox for "Print" which is checked/unchecked based on parameter ...
0
votes
1
answer
134
views
How to track state change for multiple checkboxes in ko.js
Here is the fiddle:https: https://jsfiddle.net/t5v7fmoq/1/
What I want to achieve:
I want to be able to update checkbox view automatically depending on the recieved state variable (which can have true ...
0
votes
1
answer
88
views
How to get Razor intellisense in Visual Studio for client MVVM languages?
I'm using a javascript library for MVVM style binding. (It's knockout enhanced with KO Punches, but I think this would apply to any such library.)
A typical bit of markup looks like this:
<table ...
0
votes
1
answer
33
views
knockout.js chekbox binding from json data
I have prepared a basic fiddle of what I have here: http://jsfiddle.net/s103eqdc/
I have a function called relayButton, which loads and prepares initial data for view:
function relayButton(id, name, ...
0
votes
0
answers
55
views
Capture differential / delta payload in Knockout view model
I am using a KO viewmodel which interfaces a REST end-point. The REST end-point serves me plain JSON data like:
var data = {
"firstName": "John",
"lastName": "Doe
};
Data is then transformed ...
0
votes
2
answers
167
views
Knockout JS subscribe to 2 observables in a such a way that if either of the 2 change, I only get notified once
I have a timestamp filter where a user can change start and end time.
Which user changes either of the 2, subscribe callback works just fine.
However, When the user changes both start and end time in ...