knockout-2.0 Questions
1
Solved
I am using bootstrap wysiwyg editor to replace the textarea that is being databinded to a observable value from viewModel.
<textarea data-bind="html:data, valueUpdate:'afterkeydown'"></t...
Polythene asked 21/8, 2013 at 7:55
2
Solved
I'm having a issue with knockout select list binding, My problem is I'm having a list of items, that contains description,key and editable. using the list of items I'm populating the select box.
...
Hydrotaxis asked 13/5, 2013 at 12:0
3
jsfiddle link: http://jsfiddle.net/T8ee7/
When I call Knockout's subscribe method is there a way I can get both the previous and new value? Right now, I can only call get these values separately.
...
Counterblow asked 28/12, 2012 at 23:0
2
Solved
I'm trying to map JSON data using the knockout.mapping plugin, however the heirarcical JSON data fails to populate my object properties correctly, the top level loads fine but not the child 'RootTa...
Lockwood asked 12/7, 2013 at 10:12
3
I want to implement an observable array and inside that array there should be observable objects (JS object). And In the view I'm iterating this array and getting the object and show the object pro...
Uranalysis asked 4/6, 2013 at 9:46
2
Solved
I am trying to set focus on an input with knockout after the click event is fired but couldn't find a clean way to handle it without coupling with the DOM. Here is the JS code I have:
(function() ...
Incrustation asked 28/5, 2013 at 8:26
2
Solved
Looking for a sanity check here. I've recently started learning knockout, and have been instructed to convert an existing multi-step form.
The basic idea is to validate each step before allowing t...
Erelia asked 23/5, 2013 at 19:15
2
Solved
I have a foreach loop that goes through an array (filesObservableArray). The array has a key/value with the key: URLPath. When I bind the array within the HTML, I would like to set the 'href=' valu...
Lyckman asked 3/5, 2013 at 17:23
1
Solved
I have a category drop down list which controls a sub category drop down list. I want to hide the sub categories drop down list if the sub category array is empty for the selected category.
Sample...
Officiary asked 14/4, 2013 at 15:9
1
Solved
Problem
I have created a custom binding that replaces html br occurences in an observable with \r\n in order to be displayed in a textarea. This works OK for the initial display of the value, but ...
Gavrilla asked 27/3, 2013 at 10:37
2
Solved
I can't seem to have a computed value of this working. any input would be appreciated.
i get the values for my prices from server.
var pModel = function () {
var self = this;
self.prices...
Cathicathie asked 18/3, 2013 at 17:37
3
I am simply trying to pull some data from an ajax request. The ajax call works - I know the data is retrieved. But it just isn't setting the value of the ko.computed...
function viewModel() {
t...
Justinn asked 9/12, 2012 at 1:7
2
Solved
I love KnockoutJS but have been struggling to figure out the best way to build large scale Javascript applications with it.
Right now the way I'm handling the code is by building with a root view ...
Laos asked 14/5, 2012 at 18:6
2
Solved
Cannot get my brain around how to implement knockout for the following ASP.NET MVC 4 nested view model :
public class MyProfile
{
public string Name { get; set; }
public IList<VM1> List1 ...
Impediment asked 4/3, 2013 at 23:47
1
Solved
Having these ASP.NET MVC view models:
public class User
{
public string Name { get; set; }
public LabeledEmail LabeledEmail { get; set; }
}
public class LabeledEmail
{
public IList<Contac...
Overcloud asked 7/3, 2013 at 14:39
1
Solved
With the following ASP.NET models
public class User
{
public string Name { get; set; }
public LEmail LEmail { get; set; }
}
public class LEmail
{
public IList<CLabel> Labels;
public I...
Harbaugh asked 6/3, 2013 at 22:55
2
Solved
I am having trouble getting an alternate-row css class applied to a knockout template with a foreach binding context. I am using knockout 2.1 with the available $index context variable.
This is wh...
Marshall asked 27/6, 2012 at 16:48
2
Solved
Why is it, that when I try to use knockout.js to bind some text using $index, I get the code of a function instead of a number?
<tbody data-bind="foreach: MyList">
<tr>
<td><...
Augustinaaugustine asked 2/7, 2012 at 23:4
1
Solved
I want to get the selected option object
<select data-bind="options: availableCountries,
value: selectedCountry, event: { select: onSelect}"></select>
<script type="text/javasc...
Frustrate asked 5/2, 2013 at 11:45
1
Solved
I have a scenario where the Click event is bind to <tr> and checked value is bind to checkbox inside the <td? inside <tr> . Now the problem is When the row is clicked the event is fi...
Gehenna asked 4/1, 2013 at 12:47
2
Solved
I'm using knockoutjs and I currently have something in my view that looks like this:
<img id="myTab1" data-bind="click: pressedTab.bind($data, '#myTab1')" src="images/image1.png"></img>...
Mishamishaan asked 22/6, 2012 at 14:20
2
Solved
I've checked out a number of samples, but none are quite the same as what I'm trying to do.
What I've got works, mostly, but it doesn't quite work right.
Here's a fiddle to illustrate the issue.
...
Nosography asked 3/7, 2012 at 15:7
1
Solved
I am stuck on something quite basic I believe, therefore I require some expertise to help me achieve this task.
I have a dictionary which takes an integer and string as values in order to store a ...
Chancellorship asked 9/12, 2012 at 9:39
2
Solved
Here is a jsFiddle demonstrating the following problem:
Given a foreach binding over a list of (observable) strings, the observables do not seem to update from changes to input tags bound inside t...
Ludovick asked 12/11, 2012 at 19:48
1
Solved
I have an observableArray, I have a name "Zippy", I need to check if it is in the array. if this name exists, I need to get its type. how should I do that?
// This observable array initia...
Outsoar asked 31/10, 2012 at 14:54
© 2022 - 2024 — McMap. All rights reserved.