I am trying to update a single cell with KoGrid, but I don't see the update happen until I sort the grid by clicking on the column header.
The following is the code I'm using. JSFiddle available here: http://jsfiddle.net/b22Ex/2/
The line that's not working is: vm.data()[0].b(100). Shouldn't that work since the value is a ko.observable?
var L = [
{a:ko.observable('a1'), b:ko.observable('b1'), c:ko.observable('c1')},
{a:ko.observable('a2'), b:ko.observable('b2'), c:ko.observable('c2')},
{a:ko.observable('a3'), b:ko.observable('b3'), c:ko.observable('c3')}
];
var vm = {
data: ko.observableArray(L)
};
window.vm = vm;
ko.applyBindings(vm);
vm.data()[0].b(100)
console.log("DONE CHANGING VALUE");
By the way, I also came across KoGrid how to refresh grid in case data is changed but I don't want to update the entire dataset.