Category Archives: KnockoutJS

PHPHOST BLOG

Web Hosting Related Articles You May Need

Building a Knockout.js based client for Web API services in an ASP.NET MVC app

ASP.NET MVC is now a popular web development platform and often first time users have questions regards to implementation of Data Bound behavior in MVC. This is understandably because most Customers at some point have used ASP.NET Web Forms earlier and… Continue reading

Posted in ASP.NET MVC, ASP.NET Web API, KnockoutJS, Syndicated | Comments Off on Building a Knockout.js based client for Web API services in an ASP.NET MVC app

Building a Knockout.js based client for Web API services in an ASP.NET MVC app

ASP.NET MVC is now a popular web development platform and often first time users have questions regards to implementation of Data Bound behavior in MVC. This is understandably because most Customers at some point have used ASP.NET Web Forms earlier and… Continue reading

Posted in ASP.NET MVC, ASP.NET Web API, KnockoutJS, Syndicated | Comments Off on Building a Knockout.js based client for Web API services in an ASP.NET MVC app

KnockoutJS Cheat Sheet for Beginners

This cheat-sheet gives you a quick glance at what is Knockout, why to use it and how to use it. If you are a newcomer to KO or if you are juggling between multiple JS libraries, this cheat-sheet is a handy guide to get your KO karma flowing.

This arti… Continue reading

Posted in JavaScript, KnockoutJS, Syndicated | Comments Off on KnockoutJS Cheat Sheet for Beginners

Creating Editable HTML Table for CRUD operations using Knockout Framework and WEB API

New generation of web applications developed using ASP.NET and ASP.NET MVC can provide excellent user experience with the help of client-side frameworks and libraries like jQuery, Knockout.js. Recently I came across a requirement where we had to implem… Continue reading

Posted in ASP.NET Web API, KnockoutJS, Syndicated | Comments Off on Creating Editable HTML Table for CRUD operations using Knockout Framework and WEB API

Building an Image Flip Viewer as an ASP.NET Web API Service using Knockout JS

Windows 8 introduced a nice component that flips through images using two buttons to the left and right of the control. You can see it the Windows 8 Store when looking at screenshots presented by an app as seen below.

I wanted to build one using JavaScript with one requirement that is it shouldn’t load all images at the same time because if you use big images, it kills the page load Continue reading

Posted in ASP.NET Web API, KnockoutJS, Syndicated | Comments Off on Building an Image Flip Viewer as an ASP.NET Web API Service using Knockout JS

DataList in ASP.NET MVC & KnockoutJS

We recently learnt how to implement a Master-Details view using Knockout and ASP.NET MVC. Today we will look at how we can create a nice paginated data set that mimics the WebForm DataList/Repeater/Grid functionality. We will again take advantage of Steve Anderson’s excellent KnockoutJS framework to build a rich client side functionality.

Thanks to Sumit Maitra for co-authoring this article Continue reading

Posted in ASP.NET MVC, KnockoutJS, Syndicated | Comments Off on DataList in ASP.NET MVC & KnockoutJS

Master-Details view using Knockout and ASP.NET MVC

With the introduction of ASP.NET MVC, the traditional WebForm controls and eventing mechanism has been replaced with the more stateless, HTTP based leaner MVC pattern of application development. However, change in paradigms often don’t imply change in requirements. Developing Master-Details type of functionality probably ranks as the top-most project types that are implemented in any LoB Continue reading

Posted in ASP.NET MVC, KnockoutJS, Syndicated | Comments Off on Master-Details view using Knockout and ASP.NET MVC

JSON Dates are Different in ASP.NET MVC and Web API

With the advent of ASP.NET MVC and Web API, working over plain HTML as opposed to obtrusive server side ‘web-controls’ has become the norm. Also partial post-backs and AJAX is a must. Among this paradigm shift from WebForms, JSON data transfer has gained tremendous popularity.

We all love JSON it’s easy to understand, light weight and works… almost! We all HATE JSON Dates. Why? Because JSON spec Continue reading

Posted in ASP.NET MVC, ASP.NET Web API, KnockoutJS, Syndicated | Comments Off on JSON Dates are Different in ASP.NET MVC and Web API

Dynamic UI in ASP.NET MVC using Knockout.js and Template binding

Recently I was discussing capabilities of the client-side framework Knockout.js in ASP.NET MVC applications, with some of my students. KO is a lightweight framework and very efficient for developing rich Web application.

You can find more about this … Continue reading

Posted in ASP.NET MVC, KnockoutJS, Syndicated | Comments Off on Dynamic UI in ASP.NET MVC using Knockout.js and Template binding

Unobtrusive jQuery Validation for Knockout in ASP.NET MVC

This article is from our ASP.NET MVC 101 Tutorial Series

In this article, we will explore how we can use the jQuery Validator in an ASP.NET MVC application that uses Knockout Templating. Traditionally, jQuery validator works out of the box with KO ViewModels that are statically bound.

I would recommend reading two articles before you read this one Simple Databinding and Templating using Continue reading

Posted in ASP.NET MVC, jQuery, KnockoutJS, MVC 101, Syndicated | Comments Off on Unobtrusive jQuery Validation for Knockout in ASP.NET MVC