Here is the correct way of binding a wijgrid with KO observable array. The following code goes into the script section:
var viewModel = {
data: ko.observableArray([
{ "Name": "a" },
{ "Name": "b" }
])
};
//Bind ViewModel
$(document).ready(function () {
ko.applyBindings(viewModel);
});
The HTML table can be defined like below:
<table id="dataGrid" data-bind="wijgrid: { data: data, columns : [ { headerText : 'Name'}],
ensureControl : true} ">
</table>
Hope this helps..