Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Getting Started

RHAD1969 edited this page · 6 revisions

Getting up and running with KoGrid should be as painless as possible, and that's the way we designed it!

Make sure you have jQuery, Knockout, KoGrid.css and KoGrid-2.1.1.js loaded on your page!

  1. Setup a DIV as the container for KoGrid to bind to
<div data-bind="koGrid: { data: myObsArray }"></div>
  1. Setup your ViewModel with an observableArray that you want KoGrid to bind to:
var vm = {
    myObsArray: ko.observableArray([
        { firstName: 'John', lastName: 'Doe' },
        { firstName: 'Jane', lastName: 'Doe' }
    ])
};
  1. Call applyBindings like you already do
ko.applyBindings(vm);
Something went wrong with that request. Please try again.