Questions tagged [knockout-mvc]

Knockout MVC is a web framework for ASP.NET MVC based on the popular Knockout.js JavaScript library. It allows easy creation of feature-rich applications based on Model-View-View Model (MVVM) pattern.

Knockout MVC is a web framework for ASP.NET MVC based on the popular Knockout.js JavaScript library. It follows the Model-View-View Model (MVVM) pattern, in which the user interface can be bound to a separate existing data model such that any change of the model will automatically update of interface.

Knockout MVC follows the concepts of the Knockout.js library, but uses server-side .NET classes as models instead of JavaScript as used by plain Knockout.js. Knockout MVC allows the creation of Rich Applications without the need to write JavaScript by dynamically generating some JavaScript on the server based on C#/VB.net code, and by using more server-side processing.

273 questions
0
votes
1 answer

How can i bind objects field to text box?

Model: public class DishesModel { public Dish DishToAdd{get; set;} public List AllDishes{get; set;} public List AllCategories{get; set;} public List SelectedDishes{get; set;} public DishesModel() { …
valik
  • 171
  • 1
  • 1
  • 9
0
votes
1 answer

@using and <%using difference

I'm a fan of Razor & Knockout mvc & MVC, unfortunately, we just cannot use plain MVC on our CMS(KENTICO) Solution, so I had to create a custom MVC with ASP .NET with classic ASPX. by following a simple tutorial:…
Luca Trazzi
  • 1,240
  • 1
  • 13
  • 30
0
votes
1 answer

using knockout binding

i have database value "active" returning true and false value from sql query . i want the checkbox should be ticked when active =true and unchecked when active=false. i have used mvc model in php what should i do? its a php page.
0
votes
1 answer

Knockout.js and jQuery Mobile – Group Array by Day and Have a list-divider for Each Day

I’m working on a project that is using knockout.js and jQuery Mobile. I have an observable array of observable properties. This observable array is getting populated with JSON data via an AJAX call to the server (Web API). // ViewModel my.vm =…
lmttag
  • 2,499
  • 4
  • 26
  • 30
0
votes
2 answers

How to run a function when a value is set when using knockout

I need to get a value from the database after page load is complete and run a function that will populate several dropdowns depending on the value that has been retrieved. Like a change event for a form control. How can I do this using Knockout.js?…
juliano.net
  • 7,982
  • 13
  • 70
  • 164
0
votes
1 answer

How to create KnockoutJS template for a YUI DataTable that uses JSON data?

I want to templatize the creation of a YUI3 datatable using KnockoutJS data bindings. Let's say I have following JSON string - { "@lang": "en-US", "cartItem": { "@lang": "en-US", "cartId": "14", "items": [ { …
the-petrolhead
  • 597
  • 1
  • 5
  • 16
-1
votes
2 answers

Onclick bind image using knockout js

I want to show image from allDoorColorStandard. HTML: Onclick "color-data" div , i want to update image. In alert i'm getting image URL, now need to bind in image tag.
Jimit Bhavsar
  • 118
  • 1
  • 6
-1
votes
1 answer

What is the term prototype and subscribe in knockout?

I am going over someone else's code and trying to understand what they have done. There are terms in there that I have no idea what they are.. Prototype, subscribe?? Can someone help me in understanding what this function is…
Sarah
  • 1,199
  • 2
  • 21
  • 42
-1
votes
1 answer

Knockout fallback view

Durandal, RequireJS, KnockoutJS I have a generic and a client specific view in my project. │ faq.html │ welcome.html │ shell.html │ ├───Client1 │ faq.html │ ├───Client2 │ faq.html │ welcome.html I want to show the client specific…
-1
votes
1 answer

Knockoutjs foreach n rows check if dropdown has value

I have this html markup: