knockout-mapping-plugin Questions

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 ...

2

Solved

I'm trying to figure out what I'm misunderstanding with Knockout's mapping library. I've stripped it down to a simple example, and still can get it to fail (rather, not update with the mapped varia...
Everson asked 12/9, 2013 at 6:18

3

Solved

I have a large, complex page that relies heavily on knockout.js. Performance is starting to become an issue but examining the call stack and trying to find the bottlenecks is a real challenge. I ...
Vixen asked 29/3, 2012 at 14:17

4

Solved

Using the knockout mapping plugin ( http://knockoutjs.com/documentation/plugins-mapping.html ) can you map a deeply hierachical object? If I have an object with multiple levels: var data = { nam...
Leporid asked 21/9, 2011 at 11:41

2

Solved

I'm struggling with all the Script# Dependency loading. I have a Script# Project referencing the knockout library. Which I got to work after some time with RequireJS. Now I'd like to use Knockout...
Loathe asked 10/7, 2013 at 15:40

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...

2

Solved

In KnockoutJS, what's the proper way to update an observableArray of JSON data each time an AJAX command is run? Right now, I'm blanking the array using something like viewmodel.items([]), then re...
Quoin asked 19/3, 2012 at 17:39

3

What is the standard way of loading mapping plugin in require.js ? Below is my config.js (require.js config file) require.config({ // Initialize the application with the main application file. ...
Quiteria asked 25/6, 2012 at 21:34

2

Solved

I am creating a guest list app using Knockout.js, and so far things are going swimmingly. However I have a best-practices question. My app has several different types of objects: guests and tags am...
Pothook asked 9/7, 2012 at 22:54

3

Solved

We are using knockout and the knockout mapping plugin to facilitate databinding in our jQTouch web application. The reason we use the mapping plugin, is to be able to use knockout without the need ...
Translation asked 18/7, 2011 at 15:19

2

Solved

Is it possible to manually insert a computed observable into an array that is generated with the mapping plugin? Here is an example that does not use the mapping plugin, but I would like to know if...
Lecroy asked 28/2, 2013 at 15:52

2

Solved

I'm working with knockoutjs and I'm trying to populate ViewModel instance from JSON data. According to knockoutjs documentation I may use this statement: ko.mapping.fromJS(data, viewModel); Here...
Impedimenta asked 15/1, 2013 at 11:28

2

I am trying to map an array of objects to an observableArray with the knockout mapping plugin. Somehow this seems not to work for me at all. I just tested with Crome console to verify: ko.mapp...
Downtoearth asked 11/3, 2012 at 17:33

2

Solved

I'm trying out a knockout mapping sample and think I'm almost there. I don't seem able to add a new Foo to the viewModel.foos - can anyone see what I've missed here? var Foo = function (data) { ...
Monitorial asked 3/8, 2012 at 0:20

1

Solved

I'm very new to knockout and am creating a jquery mobile app wanting to get the benefits of knockout. I have spent the last day bashing my head against the wall for a very simple problem.. I have s...
Nedi asked 29/11, 2012 at 14:4

2

Solved

I am using Knockout to implement a course list selection tool. I am using the approach below to populate the data (MVC3/Razor), so that when the viewmodel is initially populated, I have no issues w...
Cleasta asked 19/10, 2012 at 20:58

2

How can i update the complete viewModel ? On page load i get a Model and convert that using ko.mapping.fromJS(myObject) to a viewModel. If the user clicks a button i want to get updated data from ...
Pigtail asked 2/8, 2012 at 13:37

2

Solved

I am starting a new project, and keen to make use of the KnockoutJS + Web Api which are new to me, I have a good understanding of the Web Api, but Knockout is tough to get my head around at the mom...

3

Solved

I'm new to KnockoutJS, and I'm stuck trying to add additional properties and methods to the generated objects in the ko.observableArray() as created by the mapping plugin. Here's where I'm up to: ...
Jodeejodhpur asked 6/12, 2011 at 14:50

4

Solved

I'm still learning the proper usage of Knockout and I've found myself quickly getting away from ever typing ko.observable when setting up my viewmodel and instead just defining an object literal an...
Wilonah asked 20/9, 2011 at 16:3

1

Solved

I have a deep object graph from the server which I am representing with a Knockout view model structure which omits various unnecessary properties at each level but preserves the basic hierarchy. ...
Identification asked 21/6, 2012 at 23:22

2

Solved

I am trying to solve a small problem with ko mapping. The scenario is that my ViewModel is basically a collection of objects. Each of the objects is created from a json call, in this way: var View...
Friede asked 26/5, 2012 at 2:48

1

Solved

I have an MVC view model that looks like this: public class DirectorySearchModel { [Display(Name = "First name contains")] public string FirstName { get; set; } [Display(Name = "Last name cont...

2

Solved

Is there anyway I can tell the knockout mapping plugin to subscribe to all property changes call a certain function? I realize I can manually subscribe to the property change event in this manner:...
Jowl asked 13/4, 2012 at 15:23

2

I'm having an issue with knockout.js and the mapping plugin not creating models for child arrays in the source data var data = { outer: [ { 'id': 1, name: 'test outer', inner: [{ 'id': 1, n...
Abandon asked 21/3, 2012 at 7:36

© 2022 - 2024 — McMap. All rights reserved.